
Returns list of drives.
DiskScan (request#)
(i) request# see below.
(s) drive list.
Scans disk drives on the system, and returns a tab delimited list of drives of the type specified by request#.
The request# is a bitmask, so adding the values together (except for 0) returns all drive types specified; eg., a request# of 3 returns removeable drives plus local hard drives.
|
Request |
Value |
|
0 |
List of unused disk IDs |
|
1 |
List of removable drives (floppies, zip, Jaz, memory sticks etc.) |
|
2 |
List of local fixed (hard) drives |
|
4 |
List of remote (network) drives |
|
8 |
CD-ROM (32-bit) |
|
16 |
RamDisk (32-bit) |
|
32 |
List of persistent non-connected drives |
|
64 |
List USB bus disk drives. (Windows 2000 and later only) |
hd = DiskScan(2)
Message("Hard drives on system", hd)