GetParentFolderName

收藏:0   阅读:16

ASP GetParentFolderName 方法


GetParentFolderName 方法返回指定的路径中最后成分的父文件夹的名称。

语法

FileSystemObject.GetParentFolderName(path)

参数 描述
path 必需的。需返回其父文件夹名称的文件或文件夹的路径。


实例

<%
dim fs,p
set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur")
Response.Write(p)
set fs=nothing
%>

输出:

c:\winnt\cursors
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!