Latest web development tutorials

ASP GetParentFolderName method

FileSystemObject Object Reference Complete FileSystemObject Object Reference

Name GetParentFolderName method returns the specified path in the parent folder of files last ingredient.

grammar

FileSystemObject.GetParentFolderName(path)

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


Examples

<%
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


FileSystemObject Object Reference Complete FileSystemObject Object Reference