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
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南