Skip to content
Related Articles

Related Articles

Improve Article
ASP DriveLetter Property
  • Last Updated : 22 Mar, 2021

The ASP DriveLetter Property is used to return the upper-case letter that defines the local disk or a network share.



Example: The below code illustrates the ASP Drive Letter Property. 


dim fs,dr
set fs=Server.CreateObject("Scripting.FileSystemObject")
'Getting the drive to be used
set drive=fs.GetDrive("d:")
'Getting the drive letter of the drive
Response.Write("Letter of the drive is: " & dr.DriveLetter)
set dr=nothing
set fs=nothing


Letter of the drive is: D
My Personal Notes arrow_drop_up
Recommended Articles
Page :