Set process priority to an already running process batch file

How to change the priority of an already running user, now I can use it to run:, START /HIGH notepad.exebut how to change it for an already running notepad. Thanks if anyone can help with this.

+4
source share
1 answer

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", "real time" or an integer value.

MSDN.

+9

Source: https://habr.com/ru/post/1542929/


All Articles