通过本文主要向大家介绍了shortpath,vbs教程,vbs教程视频,wincc vbs教程,vbs教程下载等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
ShortPath 属性
返回按照 8.3 命名约定转换的短路径名。
object.ShortPath
object 应为 File 或 Folder 对象的名称。
说明
以下代码举例说明如何使用 ShortName 属性:
</div>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

