如何提取不分字符
我有段路径: \\public01\material\access.mdb\\public01\material\ac.mdb
\\public01\material\lsit\acce.mdb
我要怎样才能得到他们的绝对路径,结果如下:
\\public01\material\
\\public01\material\
\\public01\material\lsit\
Private Sub Command1_Click() Dim s As String Dim a As Integer s = StrReverse(Text1) a = InStr(s, "\") If a <> 0 Then s = StrReverse(Mid(s, a, Len(s) - a + 1)) MsgBox s End Sub