>>>The GetLogicalDriveStrings function will only return a list of drives available. You will next need to use GetDriveType function, again in Win32API to identify the type of drive. If it returns DRIVE_CDROM, you then have the drive letter of the CDROM. It may be quicker just to scan drives A to Z with this function - need to manually test to see if error occurs on non existent drive. Then stop when you find CD.
>>
>>Not necessarily stop - I've managed once to add a disk and have the CD as the non-last drive. Don't remember how I did it, but I think the letter was reserved for a inaccessible network mapping, and then the CD just took that letter. I know it was something unexpected - and yet having the CD as the last drive is just a default, not a mandatory thing. So he better check all available drives if it's not only the CD he's looking for.
>
>Interesting insight. But in this case, it was just the CD he was looking for...
>
>Cheers,
I mentioned this because I remembered the method of creating backups back in DOS days - I created a batch file which zipped all the tables mentioned in the data dictionary, and then prompted the user with a list of drives where to copy the archive to. It's probably easy for the user to remember which drives are inaccessible (like phantom B drive and the CD), but not for me, sitting at dozen different machines every week. Wish I had info like that back there, so I could remove the phantom floppy and CD drive letters from the list (and SUBSTed drives as well).
[later]
I just remembered the most common and easy way to have some other drive letter appear after the CD - mapped network drives :)