Create Process -need a help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi i need to terminate the resulted console output to an array..i am a new
bee to vc ...for example in php..

$myvar=shell_exe("Myfile")

The output is in §myvar...how can i do it with this CreateProcess...

Thanx in advance,
venki

CreateProcess( NULL, // No module name (use command line).
TEXT("java"), // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
CREATE_NO_WINDOW, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ) // Pointer to PROCESS_INFORMATION structure.
)
 
venki said:
Hi i need to terminate the resulted console output to an array..i am a new
bee to vc ...for example in php..

$myvar=shell_exe("Myfile")

The output is in §myvar...how can i do it with this CreateProcess...

Well, you can redirect the standard output device away from the console and
to something else. Then you read from that device into your "array".

This should get you started:

http://support.microsoft.com/?id=190351

Regards,
Will
 
Back
Top