Don't like ads? PRO users don't see any ads ;-)
Guest

Easy Spring

By: fdge on Apr 16th, 2012  |  syntax: DOS  |  size: 1.08 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. @ECHO Off
  2. @CLS
  3.  
  4. :TOP
  5. @SET THISDIR=%~dp0
  6. @SET WORKDIR=%THISDIR:~0,-1%
  7. @REM    The Following line needs to be set to the directory path of "springlobby.exe"; without the trailing "\".
  8. @SET SPRINGDIR=%WORKDIR%
  9.  
  10. IF NOT EXIST "%SPRINGDIR%\pool" (
  11. START "pinning Zero-K" /WAIT /HIGH /MAX /D"%SPRINGDIR%" "rapid\rapid.exe" pin zk:stable zk:test
  12. )
  13.  
  14. IF NOT EXIST "%SPRINGDIR%\rapid\main.cfg" (
  15. echo [tags]>"%SPRINGDIR%\rapid\main.cfg"
  16. echo pinned = zk:stable,zk:test>>"%SPRINGDIR%\rapid\main.cfg"
  17. echo. >>"%SPRINGDIR%\rapid\main.cfg"
  18. )
  19.  
  20. @REM    Use steam or not.
  21. ::@SET Lobby=steam://rungameid/16323893729632976896
  22.  
  23. IF EXIST "%SPRINGDIR%\TASClient.exe.n" (
  24. SET Lobby=%SPRINGDIR%\TASClient.exe
  25. ) ELSE (
  26. SET Lobby=%SPRINGDIR%\springlobby.exe
  27. )
  28.  
  29. @REM the following two lines will update pinned items and remove files that are no longer needed
  30. START "Upgrading Pinned items" /WAIT /HIGH /MAX /D"%SPRINGDIR%" "rapid\rapid.exe" clean-upgrade
  31. START "performing clean-up" /WAIT /HIGH /MAX /D"%SPRINGDIR%" "rapid\rapid.exe" collect-pool
  32.  
  33.  
  34. @START "Starting Lobby" "%Lobby%"
  35.  
  36.  
  37. :QUIT
  38. EXIT