title: cmd works but C:\Windows\System32\cmd.exe does not
body: <p>I am trying to invoke one executable by putting following line on command prompt. (I know I can directly invoke the exe but let's just say I have no other way to do this due to some restriction)</p>
  
  <pre><code>"cmd /C" "C:\\Program Files\ABC\xyz.exe" -register="abc"
  </code></pre>
  
  <p>itself It is successfully run. <code>/C</code> is parameter to <code>cmd.exe</code>. But when I do this</p>
  
  <pre><code>"C:\Windows\System32\cmd.exe /C" "C:\\Program Files\ABC\xyz.exe" -register="abc"
  </code></pre>
  
  <p>Gives me error</p>
  
  <pre><code>The directory name is invalid
  </code></pre>
  
  <p>Any idea why? And how can I solve this problem? I have to use full path of cmd.exe.</p>