I can't find a scenario in which "ON CLOSE" works, either in a console or on TCMD. This one is closer to what I want to do.
Code:
start
on close taskend /f %_startpid
pause
Regardless of where I run it, console of tab, the STARTed process continues to run after Xing the console or tab.
Is there some experiment that will let me see that "ON CLOSE" works at all, especially in a stand-alone console?