返回按照 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
新聞熱點
疑難解答