Drive.DriveType (Property)

The kind of disk media in the drive.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:String primitive
JavaScript syntax:IEmyDrive.DriveType

This returns a string describing the kind of media that the drive supports. These drive types are currently supported:

1Removable volume
2Fixed disk
3Network mounted drive
5RAM disk in memory

If you know the type of drive being used, you can write scripts in a more informed manner. If you are aware that the drive may be volatile, then you can make sure things are backed up, and you can also establish whether the volume is updateable from its type.