ASP GetParentFolderName() - FileSystemObject This the tutorial/example asp script how to Get parent folder name.
ShotDev Focus:
- ASP & Get parent folder name
Example
asp_filesystemobject_getparentfoldername.asp
<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim objFSO,strParent
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
strParent = objFSO.GetParentFolderName(Server.MapPath("MyFiles"))
Response.write("Parent Folder = " &strParent)
Set objFSO = Nothing
%>
</body>
</html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_filesystemobject_getparentfoldername.asp
Screenshot


