title: CreateProcess doesn't run application (nc.exe) as it should?
body: <p>The problem is that when i am open nc.exe from the CMD using the <code>nc</code> syntax as in the above code it works and is connecting to my server. But when i am doing so through my program (using the above code) it just open the nc.exe window but it doesn't let me run commands i just get a blank CMD window without any prompt .</p>
  
  <pre><code>    PROCESS_INFORMATION pi;
      STARTUPINFO si;
      memset(&amp;si, 0, sizeof(STARTUPINFO));
      si.cb = sizeof(STARTUPINFO);
  
      TCHAR nc[] = TEXT("nc.exe localhost 4444");     
  
      CreateProcess(NULL, nc, NULL, NULL, TRUE, 0, NULL, NULL, &amp;si, &amp;pi);
  </code></pre>
  
  <p>should i use any other arguments to <code>CreateProcess</code> in order to make it work as it should (or as it works when i am running it manually)? i am thinking maybe the problem is somehow relate to the StdInput StdOutput thing but i am not sure on where to go from there.</p>
  
  <p>Thanks.</p>