🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #26361

How to check for disk in drive in MS C 5.0?

#26361
From: Robert N. Berlinger
Date: Tue, 12 Apr 1988 14:28
19 lines
1242 bytes
How can I check to see if a writable (not write-protected), formatted disk has
been inserted into a particular disk drive (say A:).  I'd like to do this
without actually writing on the disk (a small read is fine).  I also would
like to make calls at the DOS level and not at the BIOS level, and use
well documented facilities available in MS C 5.0.

I previously tried bios_disk and got differing results between my Zenith
Laptop and IBM AT.  Also, it didn't recognize the external 3.5" floppy
(drive D:) on the AT.

Any help would be much appreciated.  Respond by mail -- I don't
read this newsgroup.

Thank you.
-- 
Robert N. Berlinger		    |        /------Preferred-------\
Supervisor of Systems Support	    |Domain: | naftoli@aecom.yu.edu |
Scientific Computing Center	    |UUCP: {philabs,cucard,ihnp4}!aecom!naftoli
Albert Einstein College of Medicine |CompuServe: 73047,741 GEnie: R.Berlinger
Technical Details
Message-ID: <1731@aecom.YU.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!linus!philabs!aecom!naftoli

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!linus!philabs!aecom!naftoli
From: naftoli@aecom.YU.EDU (Robert N. Berlinger)
Newsgroups: comp.sys.ibm.pc
Subject: How to check for disk in drive in MS C 5.0?
Message-ID: <1731@aecom.YU.EDU>
Date: 12 Apr 88 14:28:11 GMT
Organization: Albert Einstein College of Medicine, NY
Lines: 19