This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 12th, 2013  |  syntax: Winbatch  |  size: 0.70 KB  |  views: 199  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data