Skip to content

Instantly share code, notes, and snippets.

@seansaleh
Created November 18, 2020 12:33
Show Gist options
  • Save seansaleh/88b636b753e05f13953b03dde05d0de2 to your computer and use it in GitHub Desktop.
Save seansaleh/88b636b753e05f13953b03dde05d0de2 to your computer and use it in GitHub Desktop.
@echo off
REM Thanks to users AlanWoke and Maxdec94 on Reddit
REM https://old.reddit.com/r/GlobalOffensive/comments/7kvuvc/this_script_will_let_you_easily_switch_between_2/dtjyhg7/
TITLE Select Steam account
taskkill.exe /F /IM steam.exe
cls
echo(
echo(
echo(
echo Select your account
echo =======================================
echo(
echo 1) "Replace with a name you want to see in the window for your first account, e.g. Main"
echo 2) "Replace with a name you want to see in the window for your second account, e.g. Second"
echo(
CHOICE /M Select /C 12
If Errorlevel 2 Goto 2
If Errorlevel 1 Goto 1
:2
set username="Replace with your second account username"
Goto end
:1
set username="Replace with your first account username"
Goto end
:end
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
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment