Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting priority when creating processes with batch file

Tags:

c#

batch-file

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.

like image 818
Me again Avatar asked Apr 25 '26 20:04

Me again


1 Answers

You can use the Start command and use the /wait option.

/wait : Starts an application and waits for it to end. 
like image 78
Mark Hall Avatar answered Apr 27 '26 08:04

Mark Hall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!