This topic has been locked
Batch File for Auto Login to Steam (command prompt not exiting)
Hi Steam, im a cafe owner and i use batch file i found here on forums to auto login steam.

however what i have noticed, when steam was launched via batch file the command prompt shows at the back and even steam has been opened, the command prompt is still there.

i also tried editing the batch file and add a "exit" flag but no avail. i also tried adding some delays before the exit flag, still the same :(
< >
Showing 1-3 of 3 comments
DarkCrystalMethod Dec 30, 2012 @ 2:57pm 
The batch file does things in sequential order. Steam must exit before the batch file can proceed with its next command(example: the exit statement you wrote afterwards).
(I don't know what code you're running or where you got the batch file).

Consider finding the line in the batch file and put the word start in front of the whole thing. This causes a fire and forget startup as far as processing the batch file is concerned and the command prompt window won't stick around.
76561198061985578 Dec 31, 2012 @ 3:21am 
thank you for a quick response.

the batch file came from this

https://support.steampowered.com/kb_article.php?ref=5114-MSCJ-8182

my concern is, is there any other way to close the command prompt without exiting steam?
DarkCrystalMethod Dec 31, 2012 @ 7:40am 
Originally posted by ChanRio:
my concern is, is there any other way to close the command prompt without exiting steam?
Yes, my entire second paragraph explained the start command.

I found the batch file and the line in the batch file (as I expected):
"C:\program files\steam\steam.exe" -login %SteamLogin% %SteamPassword%

Change it to:
start "C:\program files\steam\steam.exe" -login %SteamLogin% %SteamPassword%

When the batch file is processed the start command should launch steam and then move to the next line. The start command is designed to launch instead of wait for the command to finish (by manually exiting steam in this case).

Therefore like I said the command prompt window won't stick around because the batch file can get to the next statements while steam is starting up.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Dec 30, 2012 @ 2:02pm
Posts: 3