Mail Archives: djgpp/1994/06/21/14:01:00
> Use BIOS calls to try to read the first sector. You'll get an error
> return instead of the dos message.
Two problems:
1. This will catch disk not inserted, but it won't catch errors that occur
later such as sector not found.
2. If the drive in question is other than A: or B:, you have to figure out
whether it is a floppy or not. Disks with partitions larger than 32MB need a
different format for an int 25h-level read. Also, if it isn't a floppy, you
have to worry about how big a buffer is needed.
- Raw text -