@setlocal @echo off on close echo Closed > c:\utils\close.log input X the console: %%fname endlocal
@setlocal @echo off on close echo ::Closed %_date %_time >> c:\utils\ontest.btm input X the console: %%fname endlocal ::Closed 10/12/13 10:42:30
I suppose that would work but it would involve editing TCEXIT every time I wanted to [un]implement it.How about TCEXIT? Esp. in conjunction with _EXIT?
if defined _special_exit_command .and. %_pipe == 0 .and. %_transient == 0 _special_exit_command