简体   繁体   中英

How to create a new process in C++ code under Windows?

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.

CreateProcessShellExecute都是可行的方法。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM