tommyp@ida.liu.se (Tommy Pedersen) (04/16/91)
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. Thanks in advance, /Tommy Pedersen ________________________________________________________________ |E-mail: tommyp@isy.liu.se || Telephone: +46 13 282369 | |S-mail: Tommy Pedersen || FAX: +46 13 289282 | | Dept. of EE ||______________________________| | Linkoping University || | | S-581 83 Linkoping || | | SWEDEN || | |________________________________||______________________________|
tr@samadams.princeton.edu (Tom Reingold) (04/19/91)
In article <tommyp.671792263@arthur> 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."