W3Schools.com
THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

ASP DriveLetter Property


Drive Object Reference Complete Drive Object Reference

The DriveLetter property returns one uppercase letter that identifies the local drive or a network share.

Syntax

DriveObject.DriveLetter

Example

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("The drive letter is: " & d.driveletter)
set d=nothing
set fs=nothing
%>

Output:

The drive letter is: C

Drive Object Reference Complete Drive Object Reference