Visual Basic Scripting Edition | 語言參考 |
返回按照 8.3 命名約定轉(zhuǎn)換的短路徑名。
object.ShortPath
object 應(yīng)為 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
Attributes 屬性 | DateCreated 屬性 | DateLastAccessed 屬性 | DateLastModified 屬性 | Drive 屬性 | Files 屬性 | IsRootFolder 屬性 | Name 屬性 | ParentFolder 屬性 | Path 屬性 | ShortName 屬性 | Size 屬性 | SubFolders 屬性 | Type 屬性