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
ShortPath 属性
原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]
相关文章:
- ShareName 属性(2007-11-14 8:22:48)
- Drive 属性(2007-10-25 7:12:0)
- DriveType 属性(2007-10-24 10:48:23)
- DateLastAccessed 属性(2007-9-3 8:39:21)
- Line 属性(2007-2-9 1:43:32)
- AvailableSpace 属性(2007-1-2 2:4:53)
- vbscript:File 对象(2006-11-3 5:45:50)
- Path 属性(2006-10-22 9:55:12)
- vbscript:FileSystemObject 对象(2006-10-19 7:35:29)
- DateCreated 属性(2006-9-25 7:32:19)
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
