DriveType Property

Object: Drive
Syntax: DriveType ()
Type: String
Read/Write: Read Only
Description: This property returns the type of the current drive.

DriveType can be one of the following:

ConstantValueDescription
Unknown0Unable to determine drive type.
Removable1Removable drive, i.e., floppy.
Fixed2Non-removable drive, i.e., regular hard disk.
Remote3Network mounted drive or share.
CDRom4Drive is a CD-ROM.
RAMDisk5Drive is a volatile disk RAM.

These constants can be found using the IIS 4 or later TypeLibrary feature, or by viewing the vbFileManagerInclude.asp file contained in the .\Samples\directory.

Copyright © 2010 SoftArtisans, Inc. All rights reserved.