// !!!!!
TEXT("C:\\Program Files\\intel_a\\caowei\\Debug\\hexinsuanfa.exe"), // 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.
&si, // Pointer to STARTUPINFO structure.
π ); // Pointer to PROCESS_INFORMATION structure.
// Wait until child process exits.
WaitForSingleObject( pi.hProcess, INFINITE );
// Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
// now the file shall exist
// your code ...作者: cupcake 时间: 2005-8-11 16:00
谢谢高手,可以了。
:)