Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set outFile="%APPDATA%\ForgedAllianceForever\FA Lobby.ini"
- :start
- echo Please select an environment
- echo 1. Production
- echo 2. Test
- set /p environment="Number: "
- IF "%environment%"=="1" goto production
- IF "%environment%"=="2" goto test
- goto start
- :production
- type %outFile% | findstr /v \[lobby\] | findstr /v host=test.faforever.com | findstr /v \[client\] | findstr /v force_environment=development > %outFile%
- echo.
- echo Switched to PRODUCTION
- echo.
- goto start
- :test
- type %outFile% | findstr /v \[lobby\] | findstr /v host=test.faforever.com | findstr /v \[client\] | findstr /v force_environment=development > %outFile%
- (
- echo [lobby]
- echo host=test.faforever.com
- echo [client]
- echo force_environment=development
- ) >> %outFile%
- echo.
- echo Switched to TEST
- echo.
- goto start
Add Comment
Please, Sign In to add comment