Is there a way I can check if a service is already running using the command line? I want to use it in a batch file such as "If the service isn't running, uninstall it and reinstall it". I know I could just use a NET START but in this case it's not that simple.
Thanks for any suggestions/help.
Thanks for any suggestions/help.