[comp.sys.ibm.pc] COMMAND.COM INT 2E

everett@hpcvlx.HP.COM (Everett Kaser) (11/11/88)

Recently, there have been a few posts discussing the INT 2E entry point into
COMMAND.COM, for executing commands.  Rather coincidentally, I've been
working on a program that makes use of this entry.  However, I've encountered
a "gotcha" with it.  If the command that is being executed is a .BAT file,
and during the execution of it, the user presses ^C,  the execution of the
.BAT file terminates, but the next time you try to execute a command via
INT 2E, the batch file resumes where it left off.  When the batch file
finishes, then the new command is executed.  I tried saving the ^C interrupt
vector (INT 23), setting it to the saved ^C vector from my PSP (offset 0eh),
calling INT 2E, then restoring the ^C vector.  That didn't make any noticeable
difference.

Any thoughts, anyone?

Everett Kaser
!hplabs!hp-pcd!everett