ASP parentfolder and ASP Path property is the parent directory that determines the current file or folder
Let's take a look at the ParentFolder attribute first.
All right, let's take a look at the ASP FSO Path Property Example Tutorial.
Grammar
Driveobject.path
Fileobject.path
Folderobject.path
<%
Dim fs,d
Set Fs=server.createobject ("Scripting.FileSystemObject")
Set D=FS. Getdrive ("C:")
Response.Write ("The Path is" & D.path)
Set d=nothing
Set fs=nothing
%>
Output:
The path is C:
to the file
<%
Dim fs,f
Set Fs=server.createobject ("Scripting.FileSystemObject")
Set F=FS. GetFile ("c:asptesttest.asp")
Response.Write ("The Path is:" & F.path)
Set f=nothing
Set fs=nothing
The path returned by%>output:the path is:c:asptesttest.asp ParentFolder is the specified drive, file, or folder. The ParentFolder property is used to return the file or folder specified by the parent company of the folder object. Syntax Fileobject.parentfolder folderobject.parentfolder such as a file object <%
Dim fs,f
Set Fs=server.createobject ("Scripting.FileSystemObject")
Set F=FS. GetFile ("c:asptesttest.asp")
Response.Write ("The file test.asp is in the folder:")
Response.Write (F.parentfolder)
Set f=nothing
Set fs=nothing
%>output:the file test.asp is in the Folder:c:asptestparentfolder folder instance tutorial <%
Dim fs,fo
Set Fs=server.createobject ("Scripting.FileSystemObject")
Set FO=FS. GetFolder ("C:asptest")
Response.Write ("The" "The folder test is in the folder:")
Response.Write (fo. ParentFolder)
Set fo=nothing
Set fs=nothing
%>output:the folder test is in the folder:c:asp