Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set process priority on already running process batch file

How do i change the priority of an already running posses i now that i can use this to start the posses: START /HIGH notepad.exe but how do i change it for an already running notepad. Thanks if any one can help with this.

like image 608
09stephenb Avatar asked Jun 02 '14 13:06

09stephenb


1 Answers

Use wmic (WMI command-line):

wmic process where name="notepad.exe" CALL setpriority "high priority"

The priority can be "idle", "below normal", "normal", "above normal", "high priority", "realtime", or an integer value.

Integer values for priorities can be found on this MSDN page.

like image 85
Kevin Richardson Avatar answered Nov 15 '22 03:11

Kevin Richardson