[comp.sys.ibm.pc] How to check for disk in drive in MS C 5.0?

naftoli@aecom.YU.EDU (Robert N. Berlinger) (04/12/88)

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