home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10471 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.2 KB  |  27 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!sun-barr!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!cl27111
  3. From: cl27111@uxa.cso.uiuc.edu (Christopher  Lindsey)
  4. Subject: Re: Checking for disk in drive ????
  5. References: <1992Nov10.141134.2470@msdhsv.ingr.com>
  6. Message-ID: <BxICDq.47D@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois at Urbana
  9. Date: Tue, 10 Nov 1992 15:58:37 GMT
  10. Lines: 15
  11.  
  12. john@fl_gator.b17a.ingr.com (John Eason) writes:
  13.  
  14. >Hello,
  15.  
  16. >    Does anyone know how to check to see if a disk is in the floppy drive from code??? I am tired of seeing 'Abort/Retry/Fail' when there's not. Any help would be useful and appreciated.
  17.  
  18. >Thanks.
  19.  
  20.     What you can try using is the BIOS disk services beforehand to check
  21. and see if there is a disk in the drive.  INT 13,4 will do this for you, and
  22. return a value greater than zero in register AH if an error took place.
  23. At least this way you don't get the Abort/Retry/Fail message.  Hope this helps!
  24.  
  25. Christopher Lindsey -- Dept. of Landscape Architecture, Univ. of Illinois
  26.  
  27.