In my c# program I generate a batch file and run it with cmd.
The batch file in turn creates more processes (I'll call them "child processes").
I wish for the child processes to have the same priority as the batch file. It works fine when batch's priority is <= NORMAL, but if it is higher, the child processes' priority is just NORMAL. I don't want use the START command as I need to wait for a child process finish before moving on.
You can use the Start command and use the /wait option.
/wait : Starts an application and waits for it to end.
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