Talk:Command line arguments/multiple account swapping

From Guild Wars 2 Wiki
Jump to navigationJump to search

Alternative way[edit]

If you have only two GW2 accounts, switching between them can be done more easily. An idea is based on the client's mechanic how to address the Local.dat file: its default location is %appdata%\Guild Wars 2\Local.dat, but if this file exists in the directory %userprofile%\Documents\Guild Wars 2\Local.dat, it will be used instead.

Copy the existing file Local.dat from its default location to Documents\Guild Wars 2\, then rename it to Local.tmp. Create a bat or cmd file like this (replace the path to GW2 client according to your installation, add the command line arguments if need):


@echo off
ren "%userprofile%\Documents\Guild Wars 2\Local.tmp" Local.dat
"C:\Program Files (x86)\Guild Wars 2\Gw2-64.exe"
ren "%userprofile%\Documents\Guild Wars 2\Local.dat" Local.tmp

and place it to the same Documents\Guild Wars 2\ directory. After first use, the second account name, password and other options will be stored in the second Local.dat, which will be renamed back to Local.tmp after exit. Then to launch the first account, run Guild Wars 2 shortcut as usual; to launch the second account, run this bat file. -- 07:10, 23 March 2019 (UTC)