title: I am not getting output of variable in .bat file substring
body: <p>In my .bat file below I am getting the following results. </p>
  
  <pre><code>@echo off
  set result=""
  set filteredResult=""
  setlocal enabledelayedexpansion
  FOR /F "tokens=* delims=" %%x in (outputText.txt) DO (SET result=%%x &amp; SET  filteredResult=%result:~0,5% &amp; echo !filteredResult!)
  pause
  </code></pre>
  
  <p>outputText.txt</p>
  
  <pre><code>tables
  --------------------------
  number one
  number two
  number three
  (3) lines
  </code></pre>
  
  <p>Results</p>
  
  <pre><code>""
  ""
  ""
  ""
  ""
  ""
  Press any key to continue . . .
  </code></pre>
  
  <p>Why am I not getting a substring of 5 from result.?         </p>