- Local time
- 4:41 AM
- Posts
- 127
- OS
- Windows 11 27783
i was googling how to do a batch script choice by numbers, like 1 and 2. i came across a template and adjusted the settings to correlate with the choices desired.
i wont be at a computer for another couple days. does this look like it will work, with 1 being Latency registry keys and 2 being Performance registry keys?
Code:
ECHO off
cls
:start
ECHO.
ECHO 1. Print Latency
ECHO 2. Print Performance
set choice=
set /p choice=Press 1 for Latency / Press 2 for Performance
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' reg add "HKLM\SYSTEM\CurrentControlSet\Control\PriorityControl" /v "Win32PrioritySeparation" /t REG_DWORD /d "0x00000028" /f
if '%choice%'=='1' reg add "HKLM\SYSTEM\ControlSet001\Control\PriorityControl" /v "Win32PrioritySeparation" /t REG_DWORD /d "0x00000028" /f
if '%choice%'=='2' reg add "HKLM\SYSTEM\CurrentControlSet\Control\PriorityControl" /v "Win32PrioritySeparation" /t REG_DWORD /d "0x00000016" /f
if '%choice%'=='2' reg add "HKLM\SYSTEM\ControlSet001\Control\PriorityControl" /v "Win32PrioritySeparation" /t REG_DWORD /d "0x00000016" /f
ECHO "%choice%" is not valid, try again
ECHO.
goto start
:hello
ECHO Latency
goto end
:bye
ECHO Performance
goto end
:end
PAUSE
i wont be at a computer for another couple days. does this look like it will work, with 1 being Latency registry keys and 2 being Performance registry keys?
- Windows Build/Version
- Windows 27729
Last edited:
My Computer
System One
-
- OS
- Windows 11 27783
- Computer type
- PC/Desktop
- CPU
- Intel i7 7700 @4.0ghz
- Memory
- 64gb DDR4
- Graphics Card(s)
- Radeon RX 5500 XT
- Other Info
- https://www.github.com/shoober420