title: Getting token values from for loop in Windows Batch
body: <p>I'm new to Windows batch scripting.
  Trying to get values out of text file, Ignore.txt file and store them as local variables. </p>
  
  <p><strong>Command File:</strong></p>
  
  <pre><code>@Echo off
  setlocal enabledelayedexpansion
  
  for /F "tokens=1,2,3" %%i in (Ignore.txt) do (
      echo. %%i
      echo. %%j
      echo. %%k
  
    set value1=%%i
    set value2=%%j
    set value3=%%k
  )
  
  Echo. Value1: !value1!
  Echo. Value2: !value2!
  Echo. Value3: !value3!
  
  Endlocal
  </code></pre>
  
  <p><strong>Ignore.txt:</strong></p>
  
  <pre><code>*.svc
  *.jpg
  *.png
  </code></pre>
  
  <p>But the result is only printing one variable that too wrong:</p>
  
  <p><strong>Output:</strong></p>
  
  <pre><code> *.svc
   *.jpg
   *.png
  
   Value1: *.png
   Value2:
   Value3:
  </code></pre>
  
  <p>Please help me if I'm doing anything wrong here. Also any suggestions on other better ways of retrieving this information.</p>