AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Silent start windows 79/6/2023 ![]() ![]() If this is not possible using 7za, I am also open to hearing about other approaches. Is there a way to run 7za.exe within an application completely silent, that is, without instantiating the shell command window flicker? GetExitCodeProcess(pj.hProcess, (LPDWORD)(&exit)) īoth of these methods result in the shell prompt window flicker. WaitForSingleObject( pj.hProcess, IGNORE ) //ingnore signal AED_GetErrorMessage(AEDNV_FAILED_CREATE_PROCESS,cmd) If(CreateProcess(NULL, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &sj, &pj) = 0) 7-Zip does not have an explicit 'quiet' or 'silent' mode for command line extraction. Where SystemX is defined: int SystemX(command) So far I have tried appending > nul, just as I illustrated in the command prompt image above, then using the system() command, as well as a modified system command which launches exe in another process: sprintf(command, "7za.exe x -y -o%s %s > nul", filepathUnComp, filepath) However, I need to call it in a loop (several hundred times), from a Windows application, resulting in a constant flicker as Windows launches a shell then kills it when the command is complete. From within the Windows command shell, I can append > nul to the end of a command line call of 7za, and it suppresses everything, as shown here: You can perform a basic reboot on Windows 7 by opening the Start menu, clicking the arrow next to 'Shut Down,' and selecting Restart. ![]() I would like to call 7za.exe (and possibly other console applications, that by default result in the shell command window) from within an application written in ANSI C without the shell prompt window popping up for each call. I have looked at these posts addressing similar issues: From Python and Extract Silently and Command Line Option ![]()
0 Comments
Read More
Leave a Reply. |