Guest User

switch-server.bat

a guest
Jul 4th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. @echo off
  2. set outFile="%APPDATA%\ForgedAllianceForever\FA Lobby.ini"
  3. :start
  4. echo Please select an environment
  5. echo 1. Production
  6. echo 2. Test
  7. set /p environment="Number: "
  8. IF "%environment%"=="1" goto production
  9. IF "%environment%"=="2" goto test
  10. goto start
  11. :production
  12. type %outFile% | findstr /v \[lobby\] | findstr /v host=test.faforever.com | findstr /v \[client\] | findstr /v force_environment=development > %outFile%
  13. echo.
  14. echo Switched to PRODUCTION
  15. echo.
  16. goto start
  17. :test
  18. type %outFile% | findstr /v \[lobby\] | findstr /v host=test.faforever.com | findstr /v \[client\] | findstr /v force_environment=development > %outFile%
  19. (
  20. echo [lobby]
  21. echo host=test.faforever.com
  22. echo [client]
  23. echo force_environment=development
  24. ) >> %outFile%
  25. echo.
  26. echo Switched to TEST
  27. echo.
  28. goto start
Add Comment
Please, Sign In to add comment