ASP RootFolder Property
Last Updated :
22 Mar, 2021
The ASP RootFolder Property is used to return a Folder object which indicates the root folder of the specified drive.
Syntax:
DriveObject.RootFolder
Example: The below code illustrates the ASP Drive.RootFolder Property.
ASP
<%
dim fs,d
set fs=Server.CreateObject( "Scripting.FileSystemObject" )
'Getting the drive
set d=fs.GetDrive( "d:" )
'Getting the root folder of the drive
Response.Write( "Root folder of the drive is: " & d.RootFolder)
set d=nothing
set fs=nothing
%>
|
Output:
Root folder of the drive is: D:\
Share your thoughts in the comments
Please Login to comment...