Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing Process Priority Windows BAT Command File

Posted on 2010-09-18
6
Medium Priority
?
794 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 1500 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
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…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

704 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