This returns a string describing the kind of media that the drive supports. These drive types are currently supported:
| Type | Description |
| 0 | Undefined |
| 1 | Removable volume |
| 2 | Fixed disk |
| 3 | Network mounted drive |
| 4 | CD-ROM |
| 5 | RAM 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.
| Prev | Home | Next |
| Drive.DriveLetter | Up | Drive.FileSystem |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||