title: Executing Command with "cmd" That Contains Spaces Through Git-Bash?
body: <p>I'm trying to execute a command with git-bash using cmd. I need to pass the command for it to execute. The problem is I need to pass the path of the batch file into the command and it has spaces. I can't seem to be able to pass quotes to "cmd" in a way that it will understand it.</p>
  
  <p><code>cmd //C "c:\Program Files (x86)\another path\file.bat args &amp;&amp; echo done"</code></p>
  
  <p>That will give me an error:</p>
  
  <p><code>'C:\Program' is not recognized as an internal or external command, operable program or batch file.</code></p>
  
  <p>If I try using single quotes then it passes a literal backslash to cmd.</p>
  
  <p><code>cmd //C '"c:\Program Files (x86)\another path\file.bat" args &amp;&amp; echo done'</code></p>
  
  <p>Which will give me the error the same error but show the backslashes:</p>
  
  <p><code>'\"c:\Program Files (x86)\another path\file.bat\"' is not recognized as an internal or external command, operable program or batch file.</code></p>