Xref: utzoo comp.lang.c:37319 comp.sys.ibm.pc.programmer:2588 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!ccncsu!handel.cs.colostate.edu!ashworth From: ashworth@handel.cs.colostate.edu (brian lee ashworth) Newsgroups: comp.lang.c,comp.sys.ibm.pc.programmer Subject: Help with Dos write protect error Message-ID: <13624@ccncsu.ColoState.EDU> Date: 20 Mar 91 19:53:23 GMT Sender: news@ccncsu.ColoState.EDU Reply-To: ashworth@handel.cs.colostate.edu (brian lee ashworth) Organization: Colorado State University Lines: 17 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 | -------------------------------------------------------------------------------