Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

ASP GetParentFolderName Method

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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
My Personal Notes arrow_drop_up
Last Updated : 02 Mar, 2021
Like Article
Save Article
Similar Reads
Related Tutorials