If you Ctrl+C a batch job (even on the last line) then it asks you "Terminate batch job?" which is very annoying. The answer is also saved to the command line history (so it seems that you executed command y). Killing the job from outside (e.g. Ctrl+Pause in SciTE) results in a still running zombie process of the underlying command (php in our case) until it tries to print something when it dies.
I've discovered some alternatives but they all seem as dead ends:
- *.cmd is just another name for *.bat on newer Windows.
- PowerShell is not available everywhere.
- *.js files (executable by CScript) have to be run with the extension (e.g. arc.js).
The only solution I see is to create arc.exe which seems like ridiculous overkill.