NET.exe Comamnd
NET.exe
The NET Command is used to manage services as follows: Syntax
NET START [service]
NET STOP [service]
NET PAUSE [service]
NET CONTINUE [service]
Key
service : The service name as shown in Control Panel, Services
To list the basic NT Services:
NET HELP SERVICES
To list the running NT Services:
NET START
If you try to start a service that is already running you will get this error message:"The requested service has already been started. More help is available by typing
NET HELPMSG 2182"
You can redirect and FIND this type of error as follows:
NET START alerter 2>&1FIND "2182"
IF errorlevel 1 goto :s_started