Start .exe with a set Affinity
This will have to be edited for your use case, but figured if anyone stumbles on this in the future they should get the answer...
@echo off cd C:\Users\NineB\Documents "Tom Clancy's Rainbow Six Siege.url" echo R6 Started ping 127.0.0.1 -n 101 > nul Echo Changing Priority to 1-4 PowerShell "$Process = Get-Process RainbowSix; $Process.ProcessorAffinity=30 Echo Done Pause
Explanation Below
#ANYTHING HIGHLIGHTED MIGHT NEED TO BE CHANGED FOR YOUR USE CASE
#ALSO DELETE ALL COMMENTS BEFORE USE
@echo off
cd C:\Users\NineB\Documents #Changes Directory
"Tom Clancy's Rainbow Six Siege.url" #Starts Shortcut placed in said directory
echo R6 Started
ping 127.0.0.1 -n 101 > nul #Wait 100 sec for program to start up (kind of a misused... but it works)
Echo Changing Priority to 1-4
PowerShell "$Process = Get-Process RainbowSix; $Process.ProcessorAffinity=30 #Changes the process affinity to use cores 1-4 leaving 0 and 5 for the system
Echo Done
Pause #you can change this to exit if you want cmd to close

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now