Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 818
  • 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
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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