Set process priority on already running process batch file

batch-file, windows, windows-7

Solution

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.

Problem

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.

Original source