title: Nesting for loop in batch file
body: <p>I want to nest a for loop inside a batch file to delete carriage return.
  I tried it like you can see below but it does not work.</p>
  
  <pre><code>@echo off
  setLocal EnableDelayedExpansion
  
  for /f "tokens=* delims= " %%a in (Listfile.txt) do (
      set /a N+=1
      set v!N!=%%a
  )
  
  for /l %%i in (1, 1, %N%) do (
      echo !v%%i!
      for /r "tokens=* delims=" %%i in (windows.cpp) do (
          echo %%i &gt;&gt; Linux11.cpp
      )
  )
  pause
  </code></pre>
  
  <p>Here I want to check with windows.cpp. If its working I like to change windows .cpp with !v%%i!</p>