Skip to content

Instantly share code, notes, and snippets.

@PtxDK
Created July 30, 2020 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PtxDK/1771c8c49402e96917a31e188cde70a7 to your computer and use it in GitHub Desktop.
Save PtxDK/1771c8c49402e96917a31e188cde70a7 to your computer and use it in GitHub Desktop.
Easily switch accounts
@echo off
taskkill /F /IM csgo.exe
taskkill /F /IM GameOverlayUI.exe
taskkill /F /IM Steam.exe
:start
cls
echo.
echo [1] - main
echo [2] - smurf1
echo [3] - smurf2
echo [4] - smurf3
echo [5] - smurf4
echo.
choice /c 12345 /n
cls
if %errorlevel% equ 1 set username=main & goto :logon
if %errorlevel% equ 2 set username=smurf1 & goto :logon
if %errorlevel% equ 3 set username=smurf2 & goto :logon
if %errorlevel% equ 4 set username=smurf3 & goto :logon
if %errorlevel% equ 5 set username=smurf4 & goto :logon
goto :start
:logon
reg add "HKCU\Software\Valve\Steam" /v AutoLoginUser /t REG_SZ /d %username% /f
reg add "HKCU\Software\Valve\Steam" /v RememberPassword /t REG_DWORD /d 1 /f
start steam://open/main
::start steam://run/730
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment