Windows Bat: Check whether a service exists SC QUERY ftpsvc > NUL IF E

Windows Bat: Check whether a service exists

SC QUERY ftpsvc > NUL

IF ERRORLEVEL 1060 GOTO MISSING

ECHO EXISTS

http://technet.microsoft.com/en-us/library/cc754599.aspx

http://ss64.com/nt/sc.html

http://stackoverflow.com/questions/3883099/how-does-one-find-out-if-a-windows-service-is-installed-using-preferably-only



from Google Plus RSS Feed for 101157854606139706613 https://plus.google.com/101157854606139706613/posts/UWeM6RpW4Kr

via LifeLong Community

No comments:

Post a Comment