Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!att!princeton!newross!samadams!tr From: tr@samadams.princeton.edu (Tom Reingold) Newsgroups: comp.os.msdos.programmer Subject: Re: Is the disk writeable? Message-ID: <1991Apr19.070506.320@newross.Princeton.EDU> Date: 19 Apr 91 07:05:06 GMT References: Sender: news@newross.Princeton.EDU (USENET News System) Distribution: comp Organization: deferred Lines: 25 In article tommyp@ida.liu.se (Tommy Pedersen) writes: $ I have a problem, I need to know if a may write on a disk or a diskette $ without having to try and sometimes get the PC write the silly message: $ $ Not ready error reading drive A $ Abort, Retry, Fail? _ $ $ The application I'm developing is a menudriven interface and it is frustrating $ to see the above text scroll the screen. If you use Microsoft C, read the references on _harderr(), _hardresume(), and _hardretn(). You can designate functions to jump to when a hard error occurs. When doing this, check if you are running DOS 3 or greater, because if you are, you can fail as well as abort, retry, or ignore. If you are not using Microsoft C, look up INT 24 which is the thing these functions hook into. -- Tom Reingold tr@samadams.princeton.edu OR ...!princeton!samadams!tr "Warning: Do not drive with Auto-Shade in place. Remove from windshield before starting ignition."