|
路径如:
E:\eclipse-SDK-3.2RC4-win32\workspace\UP\build\classes\javasrc\business\com\inc\tal\baa\Query.class
E:\eclipse-SDK-3.2RC4-win32\workspace\UP\build\classes\javasrc\business\com\inc\aal\bbb\Service.java
目的:想截取去掉"E:\eclipse-SDK-3.2RC4-win32\workspace\"和文件名的中间这串路径
目前做到:
Dim fso,f,temp,fright
set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.opentextfile("D:\test.txt",1,false)
temp = f.readline()
fright = len(temp)-len("E:\eclipse-SDK-3.2RC4-win32\workspace\")
str=right(temp,fright)
'str=left(str,"11")
msgbox (str)
----------
str为:UP\build\classes\javasrc\business\com\inc\tal\baa\Query.class
再怎么做去截掉文件名呢? |
|