Open In App

ASP RootFolder Property

Last Updated : 22 Mar, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

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:\

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads