« CSS:横向菜单将html作asp文件处理 »

JScript:ShortPath 属性

ShortPath 属性
返回短路径名,这些短文件名由需要以前的 8.3 文件命名规范的程序使用。

object.ShortPath

object 应为 File 或 Folder 对象。

说明
下面的代码通过一个 File 对象说明了 ShortName 属性的用法:

function ShowShortPath(filespec)
{
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFile(filespec);
s = "The short path for " + "" + f.Name;
s += "" + "<br>";
s += "is: " + "" + f.ShortPath + "";
return(s);
}
原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]

相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。