How to set a default priority for executable

H

hoenes1

Hi all,

is it possible to assign a "default priority" to an executable (e.g.
"c:\windows\notepad.exe")? I want this default priority to be applied
when the process is started. Like
"Hey Windows. Would you do me a favor? Everytime, the program
c:\windows\notepad.exe is started, please set its priority to low.
Thank you."
I know, a process can change its own priority, but I just need the
initial priority to be set.
Thanks in advance.

Cheers, Hannes
 
D

Detlev Dreyer

hoenes1 said:
is it possible to assign a "default priority" to an executable (e.g.
"c:\windows\notepad.exe")? I want this default priority to be applied
when the process is started. Like
"Hey Windows. Would you do me a favor? Everytime, the program
c:\windows\notepad.exe is started, please set its priority to low.

Create a shortcut like this:
cmd.exe /c "Start /Low %windir%\System32\Notepad.exe"
 
H

hoenes1

Detlev said:
Create a shortcut like this:
cmd.exe /c "Start /Low %windir%\System32\Notepad.exe"

That would be ok for programs I start manually. I guess I misworded my
concern, sorry for that. I don't want to assign a priority only to
programs I start manually (but those also), but I want Windows to
assign a priority to a process everytime it is started - regardless of
the way the process is started (e.g. when Visual Studio runs the
compiler (cl.exe, which is an independent process), I want Windows to
assign low priority to cl.exe). I'm aware that processes can change
their own priority, but my question is all about the initial priority.
I hope, my concern is clearer now.
Thanks again in advance.

Cheers, Hannes
 
D

Detlev Dreyer

hoenes1 said:
That would be ok for programs I start manually. I guess I misworded my
concern, sorry for that. I don't want to assign a priority only to
programs I start manually (but those also), but I want Windows to
assign a priority to a process everytime it is started - regardless of
the way the process is started (e.g. when Visual Studio runs the
compiler (cl.exe, which is an independent process), I want Windows to
assign low priority to cl.exe). I'm aware that processes can change
their own priority, but my question is all about the initial priority.

The only way that I know is changing the priority of a running process
via taskmanager (apparently, you're posting from Germany: right click
the process > Priorität festlegen). Otherwise, you'll need a program
running permanently in the background checking started processes against
a list of priority settings. I doubt that there is third-party software
around, but you may want to search the internet. Good luck.
 
H

hoenes1

Detlev said:
The only way that I know is changing the priority of a running process
via taskmanager (apparently, you're posting from Germany: right click
the process > Priorität festlegen). Otherwise, you'll need a program
running permanently in the background checking started processes against
a list of priority settings. I doubt that there is third-party software
around, but you may want to search the internet. Good luck.

This is what I expected. Anyway, thanks for your efforts.

Cheers, Hannes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top