源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

VBS教程:属性-ShortPath 属性

  • 时间:2020-02-08 09:21 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:VBS教程:属性-ShortPath 属性

ShortPath 属性

返回按照 8.3 命名约定转换的短路径名。 [code][i]object[/i].ShortPath [/code] object 应为 File 或 Folder 对象的名称。 [h3]说明[/h3]以下代码举例说明如何使用 [b]ShortName[/b] 属性:
[code]Function ShowShortPath(filespec)    Dim fso, f, s    Set fso = CreateObject("Scripting.FileSystemObject")    Set f = fso.GetFile(filespec)    s = UCase(f.Name) & "<BR>"[/code]的短路径名[code]"[/code][code]    s = s & "[/code]是:[code]" & [b]f.ShortPath[/b] [/code][code]ShowShortPath = s [/code][code]End Function[/code]
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部