Page 1 of 1

Add/remove the ~DoA~ prefix with a single [double]click

PostPosted: 08.10.2017, 15:07
by nkaels
I was bored. So I wrote two scripts:
  • doa-prefix-set.bat - Adds the ~DoA~ prefix for BF2
  • doa-prefix-unset.bat - Removes the ~DoA~ prefix for BF2

Both scripts keep the DefaultUser setting from the original Global.con.

Code for doa-prefix-set.bat:
Code: Select all
set /p texte=< "%HomePath%\Documents\Battlefield 2\Profiles\Global.con"
echo %texte% > "%HomePath%\Documents\Battlefield 2\Profiles\Global.con"
echo GlobalSettings.setNamePrefix "~DoA~" >> "%HomePath%\Documents\Battlefield 2\Profiles\Global.con"


Code for doa-prefix-unset.bat:
Code: Select all
set /p texte=< "%HomePath%\Documents\Battlefield 2\Profiles\Global.con"
echo %texte% > "%HomePath%\Documents\Battlefield 2\Profiles\Global.con"
echo GlobalSettings.setNamePrefix "" >> "%HomePath%\Documents\Battlefield 2\Profiles\Global.con"

Re: Add/remove the ~DoA~ prefix with a single [double]click

PostPosted: 08.10.2017, 23:28
by Torben-Toastbrot
thanks for that :) looks like i am not the only undercover player :mrgreen: :mrgreen: