用户登录
用户注册

分享至

VBS教程:属性-ShortPath 属性

  • 作者: 我想同雷丢嗨呀
  • 来源: 51数据库
  • 2021-07-28

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
软件
前端设计
程序设计
Java相关