当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP GetParentFolderName 方法

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP GetParentFolderName 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 277 ::
收藏到网摘: n/a

The GetParentFolderName method returns the name of the parent folder of the last component in the specified path.
ASP GetParentFolderName的作用是返回指定路径下最末一级组件所处的父文件夹的名称。

Syntax
语法

FileSystemObject.GetParentFolderName(path)

Parameter参数 Description描述
path Required. The path for the file or folder whose parent folder name is to be returned
必要组件。设置要返回父文件夹名的文件或文件夹所处的路径

Example
举例

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

Output:

c:winntcursors

评论 (0) All

登陆 | 还没注册?