Using Services.exe from the Command Line
You can use service.exe to control a service from the command line. The following table shows the commands that can be used for most services:
Command | Description |
---|---|
list | Lists all services available on the device. |
start | Starts a specific service. |
stop | Stops a specific service. |
refresh | Causes a service to refresh its configuration parameters. |
To control a Telnet server using services.exe, type the following syntax at a command prompt:
s -d list
s services -d start tel0:
s services -d stop tel0:
s services -d refresh
The above commands will list all the available services on your device. Services.exe will start the Telnet server, then stop it, and then refresh its configuration parameters.
Adding the "-d" parameter will generate a debug output, instead of console output.
See Also
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.