carl@bwkna.UUCP (Carl Mee III) (04/20/85)
For a C program (Computer Innovations C86 C compiler and library) running under MS-DOS, how can I avoid the "Abort, Retry, Ignore?" prompt that occurs when I try to access a non-existent drive, a drive with no floppy inserted, or a write attempt on a write- protected disk? Two approaches come to mind: (1) Catch the interrupt (24H?) when the error occurs and provide my own error recovery routine that returns an error indication to the calling C routine, and (2) test the drive status somehow before trying the read or write call (use int 13H?). A third possibility might be to read the controller status register directly. At the moment, I don't know how to do any of these successfully. Any help would be appreciated. Carl Mee AT&T Bell Labs Whippany, NJ (201) 386-4324