www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/21/13:05:14

Date: Tue, 21 Jun 94 10:13:34 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: morphine AT whatever DOT cs DOT jhu DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Catching disk errors

> 	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 -


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