title: How do you run a command with a full path from the Windows forfiles command?
body: <p>I am trying to run the following command:</p>
  
  <pre><code>forfiles /p ..\Schemas /m *.xsd /c "cmd /c ""C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\xsd.exe @path /classes"""
  </code></pre>
  
  <p>However, it fails with:</p>
  
  <pre><code>ERROR: Invalid argument/option - 'Files'.
  Type "FORFILES /?" for usage.
  </code></pre>
  
  <p>These also don't work:</p>
  
  <pre><code>forfiles /p ..\Schemas /m *.xsd /c "cmd /c \"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\xsd.exe\" @path /classes"
  
  forfiles /p ..\Schemas /m *.xsd /c "cmd /c ^"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\xsd.exe^" @path /classes"
  </code></pre>
  
  <p>It's definitely failing because the path being passed to <code>cmd</code> contains spaces. You normally solve this by quoting the whole argument. However, there doesn't appear to be a way to pass the double quote.</p>
  
  <p>So, <strong>how do you run a command with a full path from the Windows forfiles command?</strong></p>