Always run a program with low priority

G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

Is it possible to configure a program so that it defaults to running in low
priority rather than normal?

I know you can set the priority once a program is started by opening the
task manager, go to processes, right click on the one I want, and setting
the priority, but I'd like to be able to tell XP to always run a particular
program in low priority rather than having to keep setting it every time its
run.

Thanks !
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

cranberry girl wrote:

> Is it possible to configure a program so that it defaults to running in low
> priority rather than normal?
>
> I know you can set the priority once a program is started by opening the
> task manager, go to processes, right click on the one I want, and setting
> the priority, but I'd like to be able to tell XP to always run a particular
> program in low priority rather than having to keep setting it every time its
> run.
>
> Thanks !
Hi,


Starting Notepad with low priority:


%comspec% /c start /low notepad.exe


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:uG$3YPBqFHA.3160@TK2MSFTNGP14.phx.gbl...
> cranberry girl wrote:
>
>> Is it possible to configure a program so that it defaults to running in
>> low priority rather than normal?
>>
>> I know you can set the priority once a program is started by opening the
>> task manager, go to processes, right click on the one I want, and setting
>> the priority, but I'd like to be able to tell XP to always run a
>> particular program in low priority rather than having to keep setting it
>> every time its run.
>>
>> Thanks !
> Hi,
>
>
> Starting Notepad with low priority:
>
>
> %comspec% /c start /low notepad.exe
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx

Thanks for that Torgeir; much appreciated

I've created a .bat file (just a normal text file with .bat at the end of
the file name instead of .txt) with the following lines:

cd "C:\Program Files\GreedyApp"
%comspec% /c start /low greedyapp.exe

and it works perfectly :)

Thanks
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

cranberry girl wrote:

> "Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote:
>
> Thanks for that Torgeir; much appreciated
>
> I've created a .bat file (just a normal text file with .bat at the
> end of the file name instead of .txt) with the following lines:
>
> cd "C:\Program Files\GreedyApp"
> %comspec% /c start /low greedyapp.exe
>
> and it works perfectly :)
>
> Thanks

Your welcome.

Note that when doing this in a batch file, you don't need the
%comspec% /c part (as the batch file will run under %comspec%).

So this will also work in your batch file:

cd /D "%ProgramFiles%\GreedyApp"
start /low greedyapp.exe




--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:%23MMO4iNqFHA.544@TK2MSFTNGP11.phx.gbl...
> cranberry girl wrote:
>
>> "Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote:
>>
>> Thanks for that Torgeir; much appreciated
>>
>> I've created a .bat file (just a normal text file with .bat at the
>> end of the file name instead of .txt) with the following lines:
>>
>> cd "C:\Program Files\GreedyApp"
>> %comspec% /c start /low greedyapp.exe
>>
>> and it works perfectly :)
>>
>> Thanks
>
> Your welcome.
>
> Note that when doing this in a batch file, you don't need the
> %comspec% /c part (as the batch file will run under %comspec%).
>
> So this will also work in your batch file:
>
> cd /D "%ProgramFiles%\GreedyApp"
> start /low greedyapp.exe
>
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx

Thanks Torgeir - that worked too and was quicker to load too - many thanks
:)
 

Similar threads


ASK THE COMMUNITY

TRENDING THREADS