home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.msdos.programmer:10629 comp.sys.ibm.pc.programmer:584
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!dsacg3.dsac.dla.mil!dsac.dla.mil!hq.dla.mil!fazc016
- From: fazc016@hq.dla.mil (Don Costello)
- Newsgroups: dla.pc,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer
- Subject: Floppy Drive Readiness
- Message-ID: <951@hq.dla.mil>
- Date: 13 Nov 92 17:30:23 GMT
- Followup-To: dla.pc
- Organization: HQ Defense Logistics Agency/DASC, Cameron Station, VA
- Lines: 29
- X-Newsreader: Tin 1.1 PL4
-
-
- Is there a decent way to check the "readiness" of a floppy drive in
- Turbo C2.0?
-
- I wrote an install program that copies files from a diskette and if the
- drive door is open, or the drive is empty, I get the ever-so-inelegant
- "Abort, Retry, Fail?" message. Not only is it annoying, it screws up my
- CXL screens.
-
- The Turbo C help (and some books I've read) say to call "getcurdir" for
- the floppy drive. If an error occurs, getcurdir is supposed to return
- -1. Well, it sort of does but only after you select "Fail".
-
- 4dos will tell me the drive door is not closed, or the drive
- is empty but I can't seem to get my C program to trap the error before
- DOS (4DOS) does (COMMAND.COM also gets in the way).
-
- I've seen "drvrdy.com" from PC magazine (without source, of course) but
- I need to check the drive status without calling an external program.
-
- If anyone has done this in the past, please e-mail me the solution.
- I'll post a summary if necessary.
-
- Thanks in advance -- don
- --
- +------------------------------------+---------------------------+
- | Don Costello, DASC-ZSC | It's hard to cram this |
- | DLA Cameron Station, VA | signature into just 4 |
- | TEL: (703) 274-7215 AV: 284-7215 | lines!!! |
-