Created
January 11, 2016 14:30
-
-
Save uugr/6aa962e93baedc39ae33 to your computer and use it in GitHub Desktop.
Start Steam via Batch Script (Switch Account)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::---------------------USAGE ----------- | |
::Create a shortcut for steam.exe and add "-login username password" parameters to target w/o quotes | |
::Replace Shortcut Where You Want | |
::Edit Directory and name of the shorcut in :start_steam section for yourself | |
@echo off | |
tasklist /FI "IMAGENAME eq steam.exe" 2>NUL | find /I /N "steam.exe">NUL | |
if %ERRORLEVEL%==0 goto :kill | |
if %ERRORLEVEL%==1 goto :start_steam | |
:kill | |
taskkill/F /IM steam.exe | |
goto :start_steam | |
:start_steam | |
cd /d "D:\Program Files (x86)\Steam\" | |
start "" "account.lnk" /secondary /minimized | |
goto :exit | |
:exit | |
exit |
please separate between taskkill
and \F
in taskkill/F /IM steam.exe
on line 12 for clearly format style.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I made one that has a menu for switching accounts, want to make a GUI or in add mine to yours?
if you want to discuss more about and do a project together contact me at discord Bernardes#2261