title: print exact all characters from lines from one file to one file in batch file
body: <p>Here i am printing line no 1 to 5 from a file to another file.its working fine but one small issue that the lines are trimming from left side,i do not want to trim,it should be same as the input file.</p>
  
  <p><code>infile.txt</code>:</p>
  
  <pre><code>&lt;RCO-XXX-AGENT&gt;
   &lt;CREATED&gt;2018-06-28 10:19:09&lt;/CREATED&gt;
   &lt;FORMAT&gt;
    &lt;VARIABLE&gt;
     &lt;EOR&gt;/010&lt;/EOR&gt;
     &lt;EOC&gt;/009&lt;/EOC&gt;
     &lt;CTR&gt;5&lt;/CTR&gt;
  </code></pre>
  
  <p><code>code</code>:</p>
  
  <pre><code>echo off
  setlocal enabledelayedexpansion
  call :Print_Lines &gt; outfile.txt
  endlocal
  :Print_Lines
  setlocal enabledelayedexpansion
  set cur=0
  for /f "delims==" %%i in (infile.txt) do (  
  set /a cur=cur+1 
  if !cur! geq 1 (
  if !cur! leq 5 (
    for /f "tokens=*" %%j in ( "%%i") do (
    echo %%j
    )
   )
  )
  )
  endlocal
  exit /b 0
  goto :eof
  </code></pre>
  
  <p><code>outfile.txt</code>:</p>
  
  <pre><code>&lt;RCO-XXX-AGENT&gt;
  &lt;CREATED&gt;2018-06-28 10:19:09&lt;/CREATED&gt;
  &lt;FORMAT&gt;
  &lt;VARIABLE&gt;
  &lt;EOR&gt;/010&lt;/EOR&gt;
  </code></pre>