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

Microsoft Windows
Post Reply
PiotrMP006
Posts: 19
Joined: 2021-Sep-01, 10:57 am

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

Post 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
Post Reply