Mail Archives: djgpp/1994/06/21/13:05:14
> I want my programs to be able to successfully catch I/O errors with a
> floppy disk. This is not a problem if the disk is full, for instance, but if
> there is actually no disk in the drive then I get the DOS "Abort, Retry, Fail"
> message repeatedly on my screen. What's the easiest way to beat DOS to it and
> have MY program be able to handle a no-disk situation?
Use BIOS calls to try to read the first sector. You'll get an error
return instead of the dos message.
- Raw text -