首页 > Web开发 > 详细

ASP ShortPath 属性

时间:2020-07-12 01:35:43      阅读:54      评论:0      收藏:0      [点我收藏+]
[

ASP ShortPath 属性

完整的 Folder 对象参考手册

ShortPath 属性用于返回指定文件或文件夹的短路径(8.3 文件命名公约)。

语法

FileObject.ShortPath

FolderObject.ShortPath

针对 File 对象的实例

<%

dim fs,f

set fs=Server.CreateObject("Scripting.FileSystemObject")

set f=fs.GetFile("c:\asp_test_web\hitcounterfile.txt")

Response.Write("Path: " & f.Path)

Response.Write("<br>ShortPath: " & f.ShortPath)

set f=nothing

set fs=nothing

%>

输出:

Path: C:\asp_test_web\hitcounterfile.txt

ShortPath: C:\ASP_TE~1\HITCOU~1.TXT

针对 Folder 对象的实例

<%

dim fs,fo

set fs=Server.CreateObject("Scripting.FileSystemObject")

set fo=fs.GetFolder("c:\asp_test_web")

Response.Write("Path: " & fo.Path)

Response.Write("<br>ShortPath: " & fo.ShortPath)

set fo=nothing

set fs=nothing

%>

输出:

Path: C:\asp_test_web

ShortPath: C:\ASP_TE~1

完整的 Folder 对象参考手册

]
转载请保留页面地址:https://www.breakyizhan.com/asp/18891.html

ASP ShortPath 属性

原文:https://www.cnblogs.com/breakyizhan/p/13286149.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!