We help IT Professionals succeed at work.

It is possible to automatically set the priority of a program at the time you initially start it

evilrix
evilrix asked
on
I have a process I have to run frequently (it's a build process) and it uses a lot of CPU. Is it possible (say by way of modifying icon properties) to always have the process start at a specific priority level (RealTime - Low)? I am not after a programmatic solution, this needs to be something that can either be done via the CLI or via the icon properties.

Thanks.
Comment
Watch Question

Frank McCourryV.P. Holland Computers, Inc.
BRONZE EXPERT

Commented:
This might help: http://threadmaster.tripod.com/, it requires some setup, but should be able to accomplish what you are asking for.  And it's free!  
Shanmuga SundaramDirector of Software Engineering
BRONZE EXPERT

Commented:
Shanmuga SundaramDirector of Software Engineering
BRONZE EXPERT

Commented:
if  you have two processes (of same program) running in windows XP and if the name of the processes are same. then you can identify one process and set its priority using the tool.

http://www.processlibrary.com/processscan/
evilrixSenior Software Engineer (Avast)
SILVER EXPERT

Author

Commented:
@shasunder.
I know how to do this manually (did you see in the Q I specifically stated automatic?), I am looking for a way to force it to always start at a specific priority. The problem is the priority will be reset every time the process starts.

I have a specific process that I restart frequently. I need to ensure the priority of this process is always set low so that it can complete in the background whilst I can continue working.

-Rx.
Commented:
You don't need any third-party tools.  Just create a .cmd file to launch the program using the START command.
http://www.ss64.com/nt/start.html
http://technet.microsoft.com/en-us/library/bb491005.aspx

For instance, you could set it up to run this command:
start /D"C:\Program Files\MyProgram" /LOW myprogram.exe
evilrixSenior Software Engineer (Avast)
SILVER EXPERT

Author

Commented:
@Shift-3. Yes, that's pretty much what I was after. I didn't think to check the options on 'start' :)

I'll try it out and if it works ok I'll close this Q.

Thanks.
evilrixSenior Software Engineer (Avast)
SILVER EXPERT

Author

Commented:
Ta v much.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.