Solved

Changing Process Priority Windows BAT Command File

Posted on 2010-09-18
6
780 Views
Last Modified: 2013-11-05
Hello Experts,

I am running a command process on Windows7 that executes a BAT file.  At different points in the execution, I would like to change the process priority.  A simple way to accomplish this task within the command file is what I'm looking for.  Thanks
0
Comment
Question by:markdolar
6 Comments
 
LVL 6

Expert Comment

by:collins23
ID: 33708464
like this ?

wmic process where name=”explorer.exe” call setpriority 64
0
 

Author Comment

by:markdolar
ID: 33708715
Thanks for the response

That looks sort of correct, except I need to embed it in a BAT file and have it execute on the process that is running the BAT file.  I don't necessarily know what the process name will be, so it justs need to know that it operates against the process that is issuing it.

Also, some comparision between the numeric values and the high/medium/low etc. settings in Task Manager would be appreciated.

 
0
 
LVL 11

Expert Comment

by:marek1712
ID: 33712052
Maybe

?
start /low "your_bat_file"

Open in new window

0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 

Author Comment

by:markdolar
ID: 33712461
Thanks for the comment, but I don't control the launch of the bat file.  I can add commands to it, but have no control on how it is initiated.
0
 
LVL 14

Accepted Solution

by:
Dhiraj Mutha earned 500 total points
ID: 34698939
0
 

Author Closing Comment

by:markdolar
ID: 34845616
Kind of funny - the expert pointed back to a repost of this same question.  Sort of cheating, sort of not.

I say - give him the points
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question