Xref: utzoo comp.os.msdos.programmer:3430 alt.msdos.programmer:2400 Path: utzoo!utgpu!cs.utexas.edu!wuarchive!emory!gatech!uflorida!mlb.semi.harris.com!trantor.harris-atd.com!charybdis!sonny From: sonny@charybdis.harris-atd.com (Bob Davis) Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer Subject: DOS EXEC function: How to regain control? Message-ID: <5534@trantor.harris-atd.com> Date: 17 Feb 91 02:52:46 GMT Sender: news@trantor.harris-atd.com Reply-To: sonny@trantor.harris-atd.com (Bob Davis) Organization: Advanced Technology Dept., Harris ESS, Melbourne, FL Lines: 21 I am trying to write a TSR to invoke a command when the hot key triggers by making use of INT 21h, Function 4Bh (the DOS EXEC function). I succeed in invoking the command, but after the command completes, a return is not made to my TSR code at the point immediately after the EXEC invocation as I desire. My system simply hangs, requiring a reboot. I have attempted to set a terminate address via INT 22h but that has failed. How do I make my TSR regain control immediately after the EXEC'd command completes? I'm SO frustrated... Thanks, _____________________________________________________________________________ Bob Davis, UofALA alum \\ INTERNET: sonny@trantor.harris-atd.com | _ _ | Harris Corporation, ESS \\ UUCP: ...!uunet!x102a!trantor!sonny |_| |_| | | Advanced Technology Dept.\\ AETHER: K4VNO |==============|_/\/\/\|_| PO Box 37, MS 3A/1912 \\ VOICE: (407) 727-5886 | I SPEAK ONLY | |_| |_| | Melbourne, FL 32902 \\ FAX: (407) 729-3363 | FOR MYSELF. |_________|