title: How to Print Variable inside loop in batch script?
body: <pre><code>@ECHO OFF
  set /A q=0
  
  for /F "tokens=*"  %%E IN ('findstr /n /r "Finshed With Errors" D:\DataUploadUtil\UploadStatus\TariffUploadLog.txt') do (
  
  set array[!q!]=%%E
  
  set /A q=q+1
  
  
  echo %%E &gt;&gt;D:\DataUploadUtil\UploadStatus\AllTariffsUploadStatus.txt
  
  set test=%%E
  
  echo %test%              ::error 
  
  
  )
  </code></pre>
  
  <p>In above Script I tried to Print test in loop its Showing ECHO IS OFF.
  I want to print test variable </p>
  
  <p>Thanks </p>