🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Don Costello Fri, 13 Nov 1992 17:30
Floppy Drive Readiness
#1
Author: Don Costello
Date: Fri, 13 Nov 1992 17:30
29 lines
1838 bytes
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!!!                 | 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads