- May
- 13,211
- 180
If this BTM is running and I close the console via the "X", I hear the beep.
If this BTM is running and I close the console via the "X", I do not hear the beep.
What's up with that? I'd really like to be able to rely on my ON CLOSE mechanism.
If I do this and X the console, I get a full 5 seconds before the batch file stops and the console closes.
But this way I get no time at all.
Code:
on close beep
do forever ( delay 1 )
Code:
on close goto done
do forever ( delay 1 )
:done
beep
If I do this and X the console, I get a full 5 seconds before the batch file stops and the console closes.
Code:
on close do forever ( delay 1 )
do forever ( echo %_do_loop & delay 1 )
Code:
on close goto done
do forever ( echo %_do_loop & delay 1 )
:done
do forever ( delay 1 )