How do I force my application to wait until WinExec has completed?
WinExec is no longer recommended. You can use CreateProcess
and WaitForSingleObject
as shown in this example on Creating Processes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With