ShortPath 屬性
返回按照 8.3 命名約定轉換的短路徑名。
object.ShortPath
object 應為 File 或 Folder 物件的名稱。
說明
以下程式碼舉例說明如何使用 ShortName 屬性:
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
写评论
很抱歉,必須登入網站才能發佈留言。