CREATE PROCESS
-
i downloaded a file using openurl() in the form exe file.and executed using SHELLEXECUTE.BUT I WANT TO HIDE THE SET-UP .I TRIED THE CREATE PROCESS.BUT USING THE LATTER GIVES ME ERROR.
In ShellExecute, make nShowCmd = SW_HIDE..... Use CreateProcess like this STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); // Start the child process. if( !CreateProcess( NULL, // No module name (use command line). "MyChildProcess", // 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. &pi ) // Pointer to PROCESS_INFORMATION structure. ) hope this helps Jetli Constant Thing In World Is Change.
-
In ShellExecute, make nShowCmd = SW_HIDE..... Use CreateProcess like this STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); // Start the child process. if( !CreateProcess( NULL, // No module name (use command line). "MyChildProcess", // 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. &pi ) // Pointer to PROCESS_INFORMATION structure. ) hope this helps Jetli Constant Thing In World Is Change.
THANKS IT HELPED ME.BUT still i have Queery.i have dwnloaded an Win-Zip file in exe form then i executed the the file using CREATE PROCESS (ALSO TRIED SHELL EXECUTE nShowCmd = SW_HIDE) BUT THE SET UP OF WINZIP IS NOT HIDDEN.IS THERE ANYWAY TO HIDE THIS SETUP
-
In ShellExecute, make nShowCmd = SW_HIDE..... Use CreateProcess like this STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); // Start the child process. if( !CreateProcess( NULL, // No module name (use command line). "MyChildProcess", // 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. &pi ) // Pointer to PROCESS_INFORMATION structure. ) hope this helps Jetli Constant Thing In World Is Change.
THANKS IT HELPED ME.BUT still i have Queery.i have downloaded a Win-Zip file in exe form then i executed the the file using CREATE PROCESS (ALSO TRIED SHELL EXECUTE nShowCmd = SW_HIDE) BUT THE SET UP OF WINZIP IS NOT HIDDEN.IS THERE ANYWAY TO HIDE THIS SETUP
-
THANKS IT HELPED ME.BUT still i have Queery.i have downloaded a Win-Zip file in exe form then i executed the the file using CREATE PROCESS (ALSO TRIED SHELL EXECUTE nShowCmd = SW_HIDE) BUT THE SET UP OF WINZIP IS NOT HIDDEN.IS THERE ANYWAY TO HIDE THIS SETUP
sunit5 wrote: BUT THE SET UP OF WINZIP IS NOT HIDDEN.IS THERE ANYWAY TO HIDE THIS SETUP By default, I do not think that WinZip can be ran without some sort of user interaction. You can, however, download the command-line add-on from here. That would allow you to use WinZip in an automated fashion.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow