title: Batch file multiline command with double quotes
body: <p>When using the ^ symbol to enter a multiline command with arguments when using double quotes to use strings with spaces the ^ symbol is also passed on, can anyone explain way this is?</p>
  
  <p>working.cmd</p>
  
  <pre><code>@echo off 
  call openfiles.cmd ^
  C:\dir\filename.txt ^
  C:\another_dir\another_file.txt
  </code></pre>
  
  <p>notworking.cmd</p>
  
  <pre><code>@echo off 
  call openfiles.cmd ^
  "C:\dir with spaces\file with spaces.txt" ^
  "C:\another dir with spaces\another file with spaces.txt"
  </code></pre>
  
  <p>openfiles.cmd looks like</p>
  
  <pre><code>@echo off
  for %%x in (%*) do (
  
      IF EXIST %%x (
          call "c:\Program Files\Notepad++\notepad++.exe" %%x
      ) ELSE (
          call echo Not found %%x
      )
  
  )
  
  pause
  </code></pre>
  
  <p>the error I get look like</p>
  
  <pre><code>C:\&gt;call openfiles.cmd "C:\dir with spaces\file with spaces.txt" ^
  ELSE was unexpected at this time.
  </code></pre>