Advertisement
Guest User

Untitled

a guest
Jul 12th, 2013
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO off
  2. CLS
  3.  
  4. NET START HiPatchService
  5.  
  6. START "" "C:\Program Files (x86)\Hi-Rez Studios\HiRezLauncherUI.exe" game=300 product=17
  7. ECHO Starting Smite.
  8. ECHO.
  9.  
  10. TIMEOUT /t 10>NUL
  11.  
  12. TASKLIST /FI "IMAGENAME eq smite.exe" 2>NUL | find /I /N "smite.exe">NUL
  13. if "%ERRORLEVEL%"=="0" ECHO Smite is now running.
  14. ECHO.
  15.  
  16. :LoopStart
  17.  
  18. TASKLIST /FI "IMAGENAME eq smite.exe" 2>NUL | find /I /N "smite.exe">NUL
  19. if "%ERRORLEVEL%"=="0" TIMEOUT /t 5 >NUL & GOTO LoopStart
  20.  
  21. TASKLIST /FI "IMAGENAME eq smite.exe" 2>NUL | find /I /N "smite.exe">NUL
  22. if "%ERRORLEVEL%"=="1" GOTO StopServ
  23.  
  24. :StopServ
  25.  
  26. ECHO Smite is no longer running
  27. ECHO.
  28. NET stop HiPatchService
  29.  
  30. )
  31.  
  32. ECHO Press enter to exit
  33. PAUSE>NUL
  34.  
  35. EXIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement