title: createprocess returning 0 with getlasterror set to 2
body: <p>I have to execute a class file by providing the jar file path.Below is my program, 
  But createprocess is returning 0 with getlasterror set to 2.
  Tried using sysnative instead of system32 still its not working.
  Can anyone point me what is going wrong here:</p>
  
  <pre><code>char *command;
  char *cmdname = "c:\\windows\\system32\\cmd.exe /C ";
      char *p = " java -cp ";
      char *p1 = " com.ge.med.terra.eaaa.server.EA3Server %*";
     command = (char *)malloc(50);
  
      env = getenv("GEHC_SECURITY_HOME");
      strcpy(command, cmdname);
      strcat(command, "\"");
      strcat(command, p);
      strcat(command, "\"");
      strcat(command,env);
      strcat(command,"\\eat\\jar\\eat.jar\";");
      strcat(command, p1);
      strcat(command, "\"");
  
      result = CreateProcessA( NULL,   // No module name (use command line)
          command,        // Command line
          NULL,           // Process handle not inheritable
          NULL,           // Thread handle not inheritable
          FALSE,          // Set handle inheritance to FALSE
          0,              // No creation flags
          NULL,           // Use parent's environment block
          NULL,           // Use parent's starting directory 
          &amp;si,            // Pointer to STARTUPINFO structure
          &amp;pi ) ;  
  </code></pre>