Product SiteDocumentation Site

8.17. SysDriveMap (Windows only)


>>-SysDriveMap(-+-------+-+------+-)---------------------------><
                +-drive-+ +-,opt-+

Returns a string listing accessible drives (separated by blanks) in the form: C: D: ....
Parameters:
drive
The first drive letter of the drive map. The default is "C:".
opt
The drivemap option. This can be:
"USED"
returns the drives that are accessible or in use, including all local and remote drives. This is the default.
"FREE"
returns drives that are free or not in use.
"LOCAL"
returns only local drives.
"REMOTE"
returns only remote drives, such as redirected LAN resources or installable file system (IFS) attached drives.
"REMOVABLE"
returns removable drives.
"CDROM"
returns CD-ROM drives.
"RAMDISK"
returns drives assigned from RAM.

Example 8.5. RexxUtil - SysDrivemap

/* Code */
say "Used drives include:"
say SysDriveMap("C:", "USED")
/* Output */
Used drives include:
C: D: E: F: W: