Page 1 of 1

How can a batch lower the priority ONLY of the cmd that runs it?

Posted: 2023-Dec-18, 6:22 am
by PiotrMP006
Hi

How can a batch lower the priority ONLY of the cmd that runs it?

Why isn't this code working?

Code: Select all

wmic process where "name='cmd.exe' and commandline like '%%scriptname%%'" call setpriority "high"
Please help

Re: How can a batch lower the priority ONLY of the cmd that runs it?

Posted: 2023-Dec-19, 4:37 pm
by Simon_Weel