Change process priority for all running instancesPosted: 30/01/2012
The following script sets all processes with a matching filename to different priorities.
Im my case I am using this to change the priority of my Minecraft server between high and belownormal depending on whether I’m just running the server or managing it. I had to set the same CPU priority for all running instances of the same processes quick and easy.
Change blue to the software you are using and red to the priority to wish to use. Paste code into notepad (or a better replacement such as Notepad++) and save as a *.bat file. Add to schedule or as a shortcut.
You can for example replace
explorer.exe if you wish to prioritize moving/copying files.
FOR /F "tokens=2" %%i IN ('tasklist ^| Find /i "java.exe"') DO CALL process -p %%i high
Craig Peacocks process.exe command-line tool. Download directly or from his site!
(Thank you for the permission to mirror Craig!)
Place this in the same folder as the batch script or in your windows folder for global use.
Tags: Set process priority for multiple processes. Batch windows xp vista 7 change process priority shortcut. Quickly change process priority for all instances of a running process. Set cpu process priority shortcut.