🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5856

Re: Is the disk writeable?

#5856
From: Tom Reingold
Date: Fri, 19 Apr 1991 07:05
25 lines
1526 bytes
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."
Technical Details
Message-ID: <1991Apr19.070506.320@newross.Princeton.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!att!princeton!newross!samadams!tr
References: <tommyp.671792263@arthur>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <tommyp.671792263@arthur>
Sender: news@newross.Princeton.EDU (USENET News System)
Distribution: comp
Organization: deferred
Lines: 25