: TR Switch Batch Command Tracing Mode ON/OFF 01/07/1993-08/27/1999 : ------------------------------------------------------------------- : Copyright (C) 1993-1999 by Vladimir Veytsel www.davar.net : 1. Tracing mode manipulation parameter: : "?" or "/" - Display TR batch command text : "=" or "C" - Display current tracing mode : "0" or "OFF" - Switch tracing mode OFF : "1" or "ON" - Switch tracing mode ON : Other - Toggle current tracing mode OFF/ON : Note: AUTOEXEC.BAT or AUTOEXEC.NT should contain command : "SET TR=OFF" - Tracing is OFF @ECHO %TR% IF %1.==/. .OR. %1.==?. (LIST %_BATCHNAME ^ GOTO Finish) IF "%1"=="=" .OR. %@UPPER[%1].==C. GOTO Finish IF %1.==0. .OR. %@UPPER[%1].==OFF. (SET TR=OFF ^ GOTO Finish) IF %1.==1. .OR. %@UPPER[%1].==ON. (SET TR=ON ^ GOTO Finish) IFF %TR%.==OFF. THEN SET TR=ON ELSE SET TR=OFF ENDIFF :Finish @ECHO %S%%B%Batch command %C%tracing %B%mode is now %C%%TR%%D%