🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1139

BIOS Int 21/43 (Get/Set File Attr) locks up. Help!

#1139
From: Tim Holt
Date: Thu, 04 Apr 1991 17:41
23 lines
1513 bytes
Problem:
I'm trying to determine if a file exists on a drive (in Q Basic 4.5)
by using the interrupt 21h/AH=43h.  This is the Get/Set File Attr
command.  I then check for file-not-found or path-not-found via
returned values in AX.  Works just fine, until I don't have a floppy
in the drive when I check for a file on the floppy.  Then, the whole
system hangs & I've got to do a hard-reset to reboot (keyboard gone).

Question:  How do I get it to recover from this error state?  Is there
an easier way to see if a file exists?  I'm working in QuickBasic as
mentioned above.  I'd like to stay away from the ON ERROR GOTO... stuff,
as I've got a big modularized program and would like to stay away from the
ON ERROR stuff if possible.

Ideas?  Suggestions???
Thanks...

-$a
--
Tim Holt - Marine Technician		holtt@jacobs.cs.orst.edu
Oregon State University			
College of Oceanograpy / Oc. Admin. 104
Corvallis, OR 97331-5503		(503)737-4447
Technical Details
Message-ID: <1991Apr04.174125.19258@lynx.CS.ORST.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!ogicse!usenet!jacobs.CS.ORST.EDU!holtt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!ogicse!usenet!jacobs.CS.ORST.EDU!holtt
From: holtt@jacobs.CS.ORST.EDU (Tim Holt)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: BIOS Int 21/43 (Get/Set File Attr) locks up.  Help!
Message-ID: <1991Apr04.174125.19258@lynx.CS.ORST.EDU>
Date: 4 Apr 91 17:41:25 GMT
Article-I.D.: lynx.1991Apr04.174125.19258
Sender: @lynx.CS.ORST.EDU
Distribution: na
Organization: Oregon State University, CS Dept.
Lines: 23
Nntp-Posting-Host: jacobs.cs.orst.edu