title: Escape spaces in file path when executed via bat file
body: <p>I'm trying to start a java process passing several parameters to it using a bat file. But the problem is that the cmd only jumps and doesn't show anything when using:</p>
  
  <pre><code>start cmd/C 
  </code></pre>
  
  <p>so making it <br></p>
  
  <pre><code>start cmd/K 
  </code></pre>
  
  <p>gives a pop-up cmd where this error is shown </p>
  
  <p><em>'C:\New' is not recognized as an internal or external command, operable program or batch file.</em></p>
  
  <p>For testing purpose for reproducing the problem you can start a java process by the example below.</p>
  
  <p>I have searched for a solution, but the only thing that is similar to the problem was to use set and after that to work with the parameter. 
  set "var=content"</p>
  
  <p>The echo correctly prints the folder with many spaces like: "C:\New Folder and Spaces"<br>
  The code is below: <br></p>
  
  <pre><code>SET "currDir=%~dp0" 
  echo %currDir% 
  start cmd /K "%currDir%"..\jvm\jre\bin\java.exe -version
  </code></pre>
  
  <p>How can I pass the <strong>~dp0</strong> value even it has spaces in it without getting the above mentioned error? What if I should use it several times in a start command like: </p>
  
  <pre><code>start cmd /K "%currDir%"..\jvm\jre\bin\java.exe -version -Djava.awt.headless=true %JAVA_OPTIONS% -jar "%~dp0MyJar.jar" -home "%~dp0.." %*
  </code></pre>