Why I had not got any change? the test.txt had not been created.
But if I execute this commandLine in cmd.exe, the test.txt can be created.
could you tell me why?
Or, any advice can be appreciated!
gfzhang
gfzhang@gmail.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The code:
strcpy( szCommand, "gunzip -ac D:\test.txt.gz > D:\test.txt" );
BOOL bRes = CreateProcess( NULL, szCommand,
NULL,
NULL,
TRUE,
//DETACHED_PROCESS,
NORMAL_PRIORITY_CLASS,//REALTIME_PRIORITY_CLASS, NULL,
NULL, &si, &pi );
Why I had not got any change? the test.txt had not been created.
But if I execute this commandLine in cmd.exe, the test.txt can be created.
could you tell me why?
Or, any advice can be appreciated!
gfzhang
gfzhang@gmail.com