Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- rem You need a second user in windows with administration privileges.
- rem You need a second copy of guild wars on some storage (preferably a different physical drive than your main copy)
- rem When all is setup and you run this script for the first time, it will ask for the PW of this user one time only.
- rem Make a shortcut to this batch and set it to always run as administrator, run from there (or run manually as admin).
- rem Handle.exe is a microsoft-supported program that you can find easily online, nothing shady.
- rem Path to handle.exe (if there are spaces, escape the " around the folder to \")
- set "_handle=C:\\"Program Files (x86)\"\Handle\handle.exe"
- rem Path to second Gw2.exe (no escapes around spaces necessary)
- set "_GW=D:\Guild Wars 2\Gw2.exe"
- rem The second user (with administration privileges)
- set "_user=seconduser"
- rem The mail address of your second account.
- set "_mail=johndoe@anon.com"
- rem The password of your second account
- set "_PW=password123"
- rem don't change anything from here
- for /F "tokens=3,6 delims=: " %%I in ('%_handle% -accepteula -a "AN-Mutex-Window-Guild Wars 2"') do if not "%%J" == "" %_handle% -accepteula -c %%J -y -p %%I
- rem short delay
- ping -n 2 127.0.0.1 > nul
- runas /savecred /user:%_user% "%_GW% -email %_mail% -password \"%_PW%\" -nopatchui -windowed"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement