Cheking readiness of removable media drives
Posted on 1998-09-30
We want to write an MS-DOS utiltiy that scans for information across all drives accessible on a user's system. However we want to skip drives that have removable media (Floppies, CD-Rom, Zip, etc). This is especially important if there is no media loaded in the drive because it can trigger DOS's "abort, retry, fail" prompt.
We are currently accomplishing this by skipping A: and B: and using some interrupt code to check if each subsequent drive is a CD-ROM. A customer with a ZIP drive is now haveing the ARF problem because we are not detecting the unloaded ZIP drive and skipping it. It's an annoyance.
Can the experts suggest a way to detect when a drive with removable media is currently not ready, or perhaps a better way of deciding which drives to skip, or at least a way for a DOS app to recognize a Zip drive.