Advertisement
hidde663

affinityis1.bat

Jul 26th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ::moves all processor load to core #0
  2. ::made this for superpi.exe/other HWbot.org single thread benchmarks
  3. ::run this .bat file as admin
  4. ::tested on windows 10, but may also be backwards compatible with win 7/XP/Vista
  5. @echo off&setlocal enabledelayedexpansion
  6. for /f "skip=3 tokens=1" %%a in ('tasklist') do (
  7. set "var=%%a"
  8. if not "!var:.exe=!"=="cmd" (
  9. if not "!var:.exe=!"=="conhost"
  10. PowerShell "$Process = Get-Process !var!; $Process.ProcessorAffinity=1" 2>nul
  11. )
  12. )
  13. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement