Advertisement
Guest User

Untitled

a guest
May 1st, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal
  3. set gamedir=C:\Program Files (x86)\Steam\steamapps\common\Awesomenauts
  4. set logfile=%gamedir%\ApplicationNetwork.log
  5. if not exist "%logfile%" echo Cant find log file, most likely because steam is not in the default directory or you're running XP, you can fix this by editing the bat file and changing the third line&goto :realend
  6. cat "%logfile%" > tmp
  7. FOR /F "eol=; tokens=5,10* delims=   " %%i in (tmp) do if %%i == Succesfuly set steamid=%%j&goto :break
  8. :break
  9. FOR /F "eol=; tokens=5,8* delims=    " %%i in (tmp) do if %%i == Entered set lastlobby=%%j
  10. IF "%steamid%"=="" (echo Cant find steam id&goto :end)
  11. IF "%lastlobby%"=="" (echo No lobbies found&goto :end)
  12. echo Joining lobby %lastlobby% with steamid %steamid%
  13. start "" "steam://joinlobby/204300/%lastlobby%/%steamid%"
  14. :end
  15. del tmp
  16. :realend
  17. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement