• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

CPU Priority Shortcut for a Program - Create in Windows


Brink

Administrator
Administrator
mvp
Posts
23,645
#21
Thank you for the tip. I look forward to seeing which option works best for you. :)
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Axlano

New Member
Posts
6
#22
You could probably create a .bat file to run the program, use a timeout command to wait a few seconds to let the secondary process run, then use the command below to change the secondary process priority to what you want. Substitute the parts in red below for what you want instead.

wmic process where name="process name" CALL setpriority "value"

Possible values: "idle", "low", "below normal", "normal", "above normal", "high priority", "realtime"
i was thinking in finding where the engine is located in my pc and patch the .bat there .. but that sounds a good solution.. can you explain it better to me ?

Edit: i found the engine location ., i will try this now. But i would still love the explanation about this method you said

Edit 2 : i put the engine on the path of the .bat file but now ny game crashes .. probably because it is no starting up with the first process ,.. guess i will need your explanation after all haha
 

My Computer

System One

  • OS
    Windows 10

Brink

Administrator
Administrator
mvp
Posts
23,645
#23
The link in my post for the timeout command can show you more about how to use that command.

Which part did you need more help with? :)
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Axlano

New Member
Posts
6
#25
Brink Help

I was thinking of using this on .bat file

cmd.exe /c start "xrEngine.exe" timeout/t 300 /nobreak /High "C:\Arquivos de Program (x86)\R.G. Mechanics\S.T.A.L.K.E.R - Call Of Pripyat\bin\xrEngine.exe"

will this be correct or do i have to do some changes ?

or maybe

cmd.exe /c start "Stalker-COP" timeout/t 300 /nobreak /High "C:\Arquivos de Program (x86)\R.G. Mechanics\S.T.A.L.K.E.R - Call Of Pripyat\bin\xrEngine.exe"

since the Stalker-COP is the first process to open

Edit: i just didnt understand where this "
wmic process where name="process name" CALL setpriority "value" "
comes in the bat

Edit2: i think the timeout comand is not recognized in windows 10 .. can you please help me Brink ?
 
Last edited:

My Computer

System One

  • OS
    Windows 10

Brink

Administrator
Administrator
mvp
Posts
23,645
#26
The timeout command would need to be added like below instead to have a timeout before running the app.

The & symbol between separate commands allows you to run multiple commands on the same line.

timeout /t 300 /nobreak & wmic process where name="process name" CALL setpriority "value"
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

mazzo

New Member
Posts
2
#27
thanks a lot admin for this great tut

but is this possible to make this working for "WinRAR" ?

i mean the process of winrar is opened and closed upon the work of "extraction" and creating archives

this could be possible ?

i mean i download some archives and want to unrar them with high priority , but i need this to be done auto

as i do this many times: download RAR files, unrar, create archives

thanks in advance :)
 

My Computer

System One

  • OS
    server 2012

Brink

Administrator
Administrator
mvp
Posts
23,645
#28
Hello mazzo, and welcome to Eight Forums. :)

I'm not sure that this will work for what you're wanting since a process is being used instead.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

mazzo

New Member
Posts
2
#29
ehmm , ok thanks a lot for your fast reply

i have searched for a tool which saves priority , so each time the process starts it keeps the priority "high"

but sadly i cannot find one works with windows server 2012 x64

regards
 

My Computer

System One

  • OS
    server 2012

Users Who Are Viewing This Thread (Users: 0, Guests: 2)