Article View: comp.lang.c.moderated
Article #1994Re: Check if A-drive is ready
From: Sean 'Captain Napalm' Conner
Date: Thu, 15 Feb 1996 15:35
Date: Thu, 15 Feb 1996 15:35
23 lines
1390 bytes
1390 bytes
In article <4fstjt$2lp@solutions.solon.com> proviron@glo.be (Koen Van de Velde) writes: :Hello World, : :In one of my applications, I have to read data-files from a :floppy-drive. :I can check if the files (A:\data\trc005.dat, ...) exist, and warn the :user if not. But when there is NO floppy in drive A:, that famous :Microsoft-message "Abort, Retry or Fail ?", interrupts my program. : :My question: How can I check if the A-drive is pressent before DOS :(aahhhgg) does ? : :By the way: I'm Using Borland C++ 3.1 for dos. : :sorry if this is a FAQ. (can someone give me a link to it, if it :exists ?) : I'm surprised this one got past the moderator, as it's not really about C at all. This more or less falls under comp.os.msdos.programmer, where I'm sure they'll tell you to intercept INT 24h and the AH and DI registers contain the information about the critical error. -spc (The information is also in Ralf Brown's Interrupt List)
Technical Details
Message-ID:
<4fvjra$eog@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4fstjt$2lp@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: spc@gate.net (Sean 'Captain Napalm' Conner) Newsgroups: comp.lang.c.moderated Subject: Re: Check if A-drive is ready Date: 15 Feb 1996 09:35:06 -0600 Organization: CyberGate, Inc. Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4fvjra$eog@solutions.solon.com> References: <4fstjt$2lp@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com