delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/04/01:03:02

From: morphine AT server DOT cs DOT jhu DOT edu (Michael Phelps)
Sender: morphine AT server DOT cs DOT jhu DOT edu
Date: Thu, 4 May 1995 00:17:37 -0400
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Checking for disk in drive

	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

- Raw text -


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