当前位置: 移动技术网 > IT编程>脚本编程>VBScript > VBS教程:属性-ShortPath 属性

VBS教程:属性-ShortPath 属性

2017年12月12日  | 移动技术网IT编程  | 我要评论

海都快印,美食杰家常菜谱大全,河南省招标投标网

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

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网