Skip to content
Related Articles

Related Articles

ASP RootFolder Property

View Discussion
Improve Article
Save Article
Like Article
  • 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:\

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!