echo-helper.cmd 469 B

12345678910
  1. @ REM Helper file to help in restoring parent echo state
  2. @ REM Variable ECHO_STATE stores parent echo state. It will be used as a command in the end of file mon-cmd.cmd to restore the echo state
  3. @ set ECHO_STATE_FILE=%temp%\cwclitemp.txt
  4. @ echo > %ECHO_STATE_FILE%
  5. @ for /F "Tokens=*" %%x in ('type %ECHO_STATE_FILE%') do @set ECHO_STATE=%%x
  6. @ set ECHO_STATE=%ECHO_STATE:ECHO is on.=echo on%
  7. @ set ECHO_STATE=%ECHO_STATE:ECHO is off.=echo off%
  8. @ del %ECHO_STATE_FILE%