www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/04/11:00:09

Date: Thu, 4 May 1995 13:13:49 +0100 (BST)
From: Neville B Dastur <nbd54 AT miranda DOT umds DOT ac DOT uk>
To: Michael Phelps <morphine AT server DOT cs DOT jhu DOT edu>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Checking for disk in drive


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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019