Advertisement
Guest User

Untitled

a guest
May 5th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.34 KB | None | 0 0
  1. net stop %~2
  2. if %errorlevel%==2 echo Error, nie udało sie zatrzymac usługi %~2 >> %file%
  3. if %errorlevel%==0 (
  4. echo usługa %~2 została wylaczona poprawnie >> %file%
  5. net start %~2
  6. if %errorlevel%==2 echo Error, nie udało sie wystartowac usługi %~2 >> %file%
  7. if %errorlevel%==0 echo usługa %~2 została uruchomiona poprawnie >> %file% )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement