title: MFC Command Window Command
body: <p>In MFC I want to Create a process by opening Command Window and executing a command in that say open notepad.<br>
  i Found this tried it didn't work </p>
  
  <pre><code>STARTUPINFO sInfo = {0};
  sInfo.cb = sizeof(sInfo);
  PROCESS_INFORMATION pInfo = {0};
  
  CreateProcess("C:\\WINDOWS\\System32\\cmd.exe",""0,0,TRUE,
  NORMAL_PRIORITY_CLASS,0,0,&amp;sInfo,&amp;pInfo);
  </code></pre>