Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

ASP DriveType Property


❮ Complete Drive Object Reference

The DriveType property returns a value that indicates the type of a specified drive.

This property can return one of the following values:

  • 0 = unknown
  • 1 = removable
  • 2 = fixed
  • 3 = network
  • 4 = CD-ROM
  • 5 = RAM disk

Syntax

DriveObject.DriveType

Example

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

Output:

The drive type is: 1

❮ Complete Drive Object Reference