Usually if I want to double-click a terminal EXE
and not miss the result, I will build a simple batch file in the same folder to double-click.
fileToRun
pause
It runs the requested file and then you get a please press any key to continue
after the program terminates (successfully or in error) to allow you to determine when to close the terminal.
Or, if you don't want to have to always manually close your terminal windows, you can configure your batch to dump the output to a file instead - that way you have easy access to all of the output after a crash. You do this like so (note that a 2nd run of the program will overwrite the file of a previous run).
fileToRun > fileToRunLOG.txt
In your case, create the batch file (adding a %1
after fileToRun
to handle the file argument!) and then associate the file type with the batch, not the main executable. Done.
This might be a bit indirect, but I've just come up with it, so you may wish to wait for some better suggestions...