Date: Tue, 23 Dec 1997 13:31:56 +0200 (IST) From: Eli Zaretskii To: Anthony DOT Appleyard AT umist DOT ac DOT uk cc: DJGPP AT delorie DOT com Subject: Re: What do cwsdpmi.exe & djgpp v2 programs do to interrupt 9? In-Reply-To: <60E7074F3A@fs2.mt.umist.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 23 Dec 1997, Anthony.Appleyard wrote: > SPATRL.EXE on my desktop and on my laptop using my TSR run and terminate OK, > if I remembered to call AAKEYS.COM from the DOS prompt first. But how to do > that e.g. from in Windows? You can make Windows run a batch file when it launches the DOX box. To do that, click (once) on the DOS Prompt icon, then click on "File" in the Program Manager, choose Properties, and change the "Command Line" property to run a batch file, like this: c:\dos\command.com /k c:\foobar\mywinbat.bat The /k switch causes COMMAND.COM to execute the said batch file and then continue running. In that batch file you can put a line that loads your AAKEYS.COM. > Please: what exactly do (cwsdpmi.exe and programs compiled with > djgpp v2) do to the interrupts? DJGPP startup code hooks the hardware keyboard interrupt (so that it could generate SIGINT when you press Ctrl-C). I'm not sure how does this interact with your extremely complex solution, but if the batch file trick above solves your Windows problems, why bother?