• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 810
  • Last Modified:

Changing Process Priority Windows BAT Command File

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
markdolar
Asked:
markdolar
1 Solution
 
collins23Commented:
like this ?

wmic process where name=”explorer.exe” call setpriority 64
0
 
markdolarAuthor Commented:
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
 
marek1712Commented:
Maybe

?
start /low "your_bat_file"

Open in new window

0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 
markdolarAuthor Commented:
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
 
Dhiraj MuthaLevel DCommented:
0
 
markdolarAuthor Commented:
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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now