Al,
If your file name, including the drive letter is in a variable such as cFileName, use the following line of code to determine if it is a CDROM drive:
IF DRIVETYPE(cFileName) = 5
* It is a CD ROM Drive so do what you want
ENDIF
You can look at the FoxPro help for a list of the other drive types.
Cathy