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

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.
LVL 40
evilrixSenior Software Engineer (Avast)Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Frank McCourryV.P. Holland Computers, Inc.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!  
0
Shanmuga SundaramDirector of Software EngineeringCommented:
0
Shanmuga SundaramDirector of Software EngineeringCommented:
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/
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

evilrixSenior Software Engineer (Avast)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.
0
Shift-3Commented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
evilrixSenior Software Engineer (Avast)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.
0
evilrixSenior Software Engineer (Avast)Author Commented:
Ta v much.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.