How to create a batch file to run a program at high priority?


  1. Posts : 107
    Win 10 x 64 bit
       #1

    How to create a batch file to run a program at high priority?


    Hi,

    I would like to know how to create a batch file to run a program via it at high priority as default in Win 10?

    Please tell me!
    Thanks to all in advance!
    Best regards!
      My Computer


  2. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
       #2

    Hello tenmen, :)

    You could use the method in Option 4 of the tutorial below to create a shortcut or .bat file to always run a program with a high CPU priority.

    Set CPU Process Priority for Applications in Windows 10 Windows 10 Tutorials
      My Computers


  3. Posts : 1,777
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #3

    Alternatively, you could use Nir Sofer's AdvancedRun (which gives a lot of configurable options).

    Note: Make sure you download the right version for your system, i.e. x32 or (more likely) x64.

    Use the AdvancedRun's GUI to create/save a configuration (.CFG) file with the parameters you want, e.g. process priority and/or elevation.

    From then on, use a BAT file.

    For example, say you want to run REGEDIT (the Registry Editor) as 'High Priority' and as 'System'.

    1. Download and unzip AdvancedRun (to, say, C:\Support).
    2. Use AdvancedRun's GUI to select your parameters (shown as a) then save them as a .CFG file (shown as b)... say, C:\Support\rrhpas.cfg.
    How to create a batch file to run a program at high priority?-advancedrun-01.jpg

    3. Create a .BAT file with the following to re-use the .CFG file.
    Code:
    C:\Support\AdvancedRun.exe /Run "C:\Support\rrhpas.cfg"

    When the .BAT file is run it will create the following process:
    How to create a batch file to run a program at high priority?-advancedrun-02.jpg

    Of course, you'll also have to deal with 'normal' elevation issues, e.g. using Task Scheduler to run the .BAT file.

    Hope this helps...
      My Computer


  4. Posts : 107
    Win 10 x 64 bit
    Thread Starter
       #4

    I have tried many ways for changing and saving the priorities to high, for games I play,and they succeeded,but only for one game the priority saves only as ''Above normal'' !
    How do I fix this? Please help me!Thanks!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:29.
Find Us




Windows 10 Forums