Skip to content
Related Articles

Related Articles

Improve Article
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.



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


Root folder of the drive is: D:\
My Personal Notes arrow_drop_up
Recommended Articles
Page :