Can anybody answer me the question of how to create a new process from within C++ code with specific parameters for that process under windows ? eg how to execute
"C:\\Program Files (x86)\\WinRAR\\UnRAR.exe"
with some arguments ? or how to execute "reg import myRegEntry.reg" ?
I like explanations, but sometimes examples are better. I would be very thankfull for both
Thanks for anybody's help.
Hope this helps: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx
It is explained quite detailed.
CreateProcess
和ShellExecute
都是可行的方法。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.