Guest User

Untitled

a guest
Feb 11th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. SET service=OracleXETNSListener
  3. sc query %service% | find "STATE" | find "RUNNING"
  4. if %ERRORLEVEL% == 0 goto stop
  5. net start %service%
  6. goto end
  7. :stop
  8. net stop %service%
  9. :end
Add Comment
Please, Sign In to add comment