Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Changing Process Priority Windows BAT Command File

Posted on 2010-09-18
6
Medium Priority
?
801 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Hallo! I guess almost every Windows Administrator must have got stumped with this question "Where does WINDOWS store a users cached credentials? Every user who had once logged onto a Server/Desktop while it was connected to the domain could sti…
Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…

886 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