Can I make steam remember the password for both of my steam accounts? [duplicate]

I'd like to switch between two Steam accounts (from the same windows user account) without having to re-enter their passwords. So basically I am trying to write a batchfile which takes care of the relevant files and/or registry settings, but for that I need to know

Which files and registry settings change when logging in as another user?

Obvious bonus points for providing a batch file for that task.


Solution 1:

The Steam executable (Steam.exe on Windows) accepts a number of command line parameters; you could try taking advantage of those.

Specifically, this one, which starts Steam and immediately attempts to log in with the given credentials:

-login %u %p

This logs into Steam with the specified Username and Password combination. Replace %u with the username, and %p with the password you want to login with (Steam must be off for this to work).

And, since this doesn't work while Steam is running:

-shutdown

This shuts down (exits) Steam.

Solution 2:

You can run TWO Steams with Sandboxie.
(Yeah, I know this is not what you want.
Still, this might worth a try if anyone is interested in such a solution.)