ASP GetParentFolderName Method
Last Updated :
02 Mar, 2021
The GetParentFolderName Method in ASP is used for returning a string value that indicates the name of a parent Folder of the last component in the specified path. It is a predefined method of the FileSystem Object.
Syntax:
FileSystemObject.GetParentFolderName(path)
Parameter Values:
Path: It is a required attribute. It specifies the complete path file or a folder whose parent folder name is to be returned.
Example Code: Below example demonstrate the ASP GetParentFolderName Method.
ASP
<%
dim fs,p
set fs=Server.CreateObject( "Scripting.FileSystemObject" )
p=fs.GetParentFolderName( "d:\sudo\GFG\Geeks.asp" )
Response.Write(p)
set fs=nothing
%>
|
Output:
d:\sudo\GFG
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...