How can I check the existence of a windows service in a batch file?
The user is inputing a service name and I want to check that the service does exist before continuing with my script.
How can I check the existence of a windows service in a batch file?
The user is inputing a service name and I want to check that the service does exist before continuing with my script.
Try this:
>NET START | FIND "Workstation"
where "Workstation" is the name of the service