返回按照 8.3 命名約定轉(zhuǎn)換的短路徑名。
object.ShortPath
object 應(yīng)為 File 或 Folder 對(duì)象的名稱。
以下代碼舉例說明如何使用 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.ShortPathShowShortPath = sEnd Function
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注