Open In App

ASP RootFolder Property

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.




<%
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:\
Article Tags :