| ShortPath 属性 |
object 应为 File 或 Folder 对象的名称。
Function ShowShortPath(filespec)
Dim fso, f, s
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(filespec)
s = UCase(f.Name) & "<BR>"的短路径名"
s = s & "是: " & f.ShortPath
ShowShortPath = s
End Function