www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/02/18:01:33

Xref: news-dnh.mv.net comp.os.msdos.djgpp:2326
Path: news-dnh.mv.net!mv!news.sprintlink.net!in1.uu.net!EU.net!Germany.EU.net!news.dfn.de!fu-berlin.de!news.belwue.de!fl-sun00.fbe.fh-weingarten.de!assi2.fbp.fh-weingarten.de
From: herzer AT fbp DOT fh-weingarten DOT de (Armin Herzer)
Newsgroups: comp.os.msdos.djgpp
Subject: Q: checking the status of disk drives
Date: Mon, 02 Oct 1995 08:24 GMT
Organization: Fachhochschule Ravensburg-Weingarten FBP
Lines: 19
Distribution: world
Nntp-Posting-Host: assi2.fbp.fh-weingarten.de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Hello all,
can anyone tell me, how I can check the status of the disk
drives a: and b: (eg. drive not ready -> door open). At the moment
I am using biosequip() to find out how many disk drives are installed
and getdfree() to find out if a volume is available (by checking the
value 0xffff of s_clus (I guess)). This method works fine (esp. for
hard disks). But when there is no disk inserted (in disk drive a: or b:)
the program stops with an error message "drive not ready - (A)bort (R)etry
(I)gnore (F)ail" and after pressing a key I get the 0xffff value.
How can I get rid of this error message so that the program does not stop
(and I can create my own error message)?
Thanks in advance,
Armin
Armin Herzer
c/o Fachhochschule Ravensburg-Weingarten
Postfach 1261
88241 Weingarten
Germany
e-mail: herzer AT fbp DOT fh-weingarten.

- Raw text -


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