Mail Archives: djgpp/1995/05/04/11:00:09
On Thu, 4 May 1995, Michael Phelps wrote:
> I have a program where I want it to see if there is a disk in drive
> A to scan, but my problem is that whatever I try to use in order to access the
> drive will result in an "Abort, Retry, Fail?" message if there is no disk in
> the drive. I have tried using functions like getdfree() on the drive, and then
> check errno afterwards, but these functions also give the "Abort, Retry, Fail?"
> prompt. Attempting to read to or write from a dummy-named file on drive A:
> also gives the same message. Is there anyway to get around this (possibly with
> some intdos() command, maybe?)? Thanks.
> ---Michael Phelps, MD
>
The Abort, Rerty etc bit comes from the DOS critical error handler. In
order for you to prevent it from showing on the screen, you need to hook
the critical error handler interupt and process it yourself. I havn't got
the detail on hand as to which int, but I'm sure Ralf Browns list would
have it in there.
Hope this helps
Neville
- Raw text -