0

Hi I need to check a windows services exist or not using batch command. if it exists need to delete it.

selvakumar
  • 1,771
  • 3
  • 20
  • 34

1 Answers1

0

Like this with Admin rights:

@echo off
sc query Name_of_the_service >nul && sc stop Name_of_the_service
SachaDee
  • 9,245
  • 3
  • 23
  • 33