Add/remove the ~DoA~ prefix with a single [double]click
Posted: 08.10.2017, 15:07
I was bored. So I wrote two scripts:
Both scripts keep the DefaultUser setting from the original Global.con.
Code for doa-prefix-set.bat:
Code for doa-prefix-unset.bat:
- 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"