home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10629 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.8 KB

  1. Xref: sparky comp.os.msdos.programmer:10629 comp.sys.ibm.pc.programmer:584
  2. 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
  3. From: fazc016@hq.dla.mil (Don Costello)
  4. Newsgroups: dla.pc,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer
  5. Subject: Floppy Drive Readiness
  6. Message-ID: <951@hq.dla.mil>
  7. Date: 13 Nov 92 17:30:23 GMT
  8. Followup-To: dla.pc
  9. Organization: HQ Defense Logistics Agency/DASC, Cameron Station, VA
  10. Lines: 29
  11. X-Newsreader: Tin 1.1 PL4
  12.  
  13.  
  14. Is there a decent way to check the "readiness" of a floppy drive in
  15. Turbo C2.0?
  16.  
  17. I wrote an install program that copies files from a diskette and if the
  18. drive door is open, or the drive is empty, I get the ever-so-inelegant 
  19. "Abort, Retry, Fail?" message.  Not only is it annoying, it screws up my
  20. CXL screens.
  21.  
  22. The Turbo C help (and some books I've read) say to call "getcurdir" for
  23. the floppy drive.  If an error occurs, getcurdir is supposed to return
  24. -1.  Well, it sort of does but only after you select "Fail".
  25.  
  26. 4dos will tell me the drive door is not closed, or the drive
  27. is empty but I can't seem to get my C program to trap the error before
  28. DOS (4DOS) does (COMMAND.COM also gets in the way).
  29.  
  30. I've seen "drvrdy.com" from PC magazine (without source, of course) but
  31. I need to check the drive status without calling an external program.
  32.  
  33. If anyone has done this in the past, please e-mail me the solution.
  34. I'll post a summary if necessary.
  35.  
  36. Thanks in advance -- don
  37. -- 
  38. +------------------------------------+---------------------------+
  39. | Don Costello, DASC-ZSC             |  It's hard to cram this   |
  40. | DLA Cameron Station, VA            |  signature into just 4    |
  41. | TEL: (703) 274-7215  AV: 284-7215  |  lines!!!                 | 
  42.