* This method will return a string of all letters that DRIVETYPE function indicates are * CD ROM drives. The calling program then needs to check for empty string or multiples * LOCAL lcCDDrives, lcLettersToCheck, i lcCDDrives = "" lcLettersToCheck = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" i = 0 FOR i = 1 TO 26 IF DRIVETYPE(SUBSTR(lcLettersToCheck,i,1)) = 5 lcCDDrives = lcCDDrives + SUBSTR(lcLettersToCheck,i,1) ENDIF ENDFOR RETURN lcCDDrivesYou could do a variation to find valid hard drives.