title: For statement echoing DO ( commands ) in console when batch script runs
body: <p>Basically when I am running this script, after runprog.exe returns (echos in cmd prompt) everytihng in the do ( ) section. </p>
  
  <pre>@echo off
  set NODES=(server1.com server2.com)
  for %%i in %NODES% do (
      echo Log stuff... >> logfile.txt
      runprog.exe /switch %%i
      if %ERRORLEVEL%==0 (echo success) else (echo fail)
      sleep 5
  )</pre>
  
  <p>Edit: @echo off is at the top of the script. </p>