By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!with a simple BTM like
I haven't been able to see it work at all (tab or stand-alone).Code:on close beep dir /s c:\
start
on close taskend /f %_startpid
pause
@setlocal
@echo off
on close calc.exe
pause
endlocal
on close echo xyz > v:\foo.txt
do forever ( delay 1 )
start
on close taskend /f %_startpid
do forever ( delay 1 )
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.
Regardless of where I run it, console of tab, the STARTed process continues to run after Xing the console or tab.Code:start on close taskend /f %_startpid pause
Is there some experiment that will let me see that "ON CLOSE" works at all, especially in a stand-alone console?