6

I am starting a long, memory and CPU-intensive run. I know how to change the process priority manually from the task manager.

Is there a way that I can run it at low priority from a .bat file, since that is how I start it?

1 Answer 1

14

Start it with the Start /low command and parameter, e g Start /low c:\foo.exe.

If you want to start a program with spaces in path and with arguments, you need to specify a title as well:

start /low "Title of cmd window" "c:\program files\blah\blah.exe" --argument
4
  • Note that this starts it in a new window if the command itself is a .bat. The window doesn't close when the command done. That works fine for me, but could be annoying. May 19, 2011 at 17:55
  • 3
    @Brian: You can start cmd /c foo.bat in that case. May 19, 2011 at 18:01
  • "If you want to start a program with spaces [...] you need to specify a title as well" ... this made my day ! Dec 12, 2016 at 17:10
  • 1
    Note: any programs started from within the foo.bat retain the lower priority, great for multi step scheduled long running tasks like backups. Sep 29, 2018 at 1:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .