[comp.sys.ibm.pc.programmer] Help with Dos write protect error

ashworth@handel.cs.colostate.edu (brian lee ashworth) (03/21/91)

I am using MSC 5.1 and am trying to find a high level dos or possibly bios
call to determine the status of the disk drive.  In particular I am trying
to detect what the status of the write protect tab is.  My problem stems
from the fact that I get a write protect error Abort, Retry, Ignore? message
when I try to write to a file using fopen and fprintf.  I would like to 
detect the status before I write to the file so that dos doesn't have a 
chance to display it's error.  I have looked in many books and dos manuals
for bios calls with no luck.

thanks in advance!

-------------------------------------------------------------------------------
| Brian Ashworth CS major trying to just make it through                      |
| E-mail address ashworth@handel.colostate.edu                                |
-------------------------------------------------------------------------------