title: Batch: remove all white spaces from a text file?
body: <p>I have text file.</p>
  
  <pre><code> 201N001466  AD55JGU0604140     VOLKSWAGEN          GOLF S                      BLACK        
    201N001437  AF14HFY0604140     BMW                 520D SE AUTO             GREY  
  </code></pre>
  
  <p>I want to remove all white spaces
  and make my output as</p>
  
  <pre><code>  201N001466AD55JGU0604140VOLKSWAGENGOLFSBLACK
  
    201N001437AF14HFY0604140BMW520DSEAUTOGREY 
  </code></pre>
  
  <p>My batch file is</p>
  
  <pre><code>   @echo off
     setlocal enabledelayedexpansion
  
     for /F "tokens=*" %%A in (C:\test\Index.txt) do (
    set line=%%A
  echo(!line:~1!&gt;&gt;C:\test\Index1.txt
   )
  </code></pre>