Microsoft(R) Visual Basic(R) Scripting Edition
ShortPath 属性
 语言参考  
 起始页 | 版本 3  

请参阅                   应用于


描述
返回按照 8.3 命名约定转换的短路径名。
语法
object.ShortPath

object 应为 FileFolder 对象的名称。

说明
以下代码举例说明如何使用 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

(C) 1998 Microsoft Corporation. All rights reserved. Terms of Use.