Share via


Using Services.exe from the Command Line (Windows Embedded CE 6.0)

1/6/2010

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

load <service name>

Activates a service that is inactive.

list

Lists all services available on the device.

start <service instance>

Starts a specific service.

stop <service instance>

Stops a specific service.

refresh <service instance>

Causes a service to refresh its configuration parameters.

unload <service instance>

Causes a service to be unloaded and removed.

register <service name>

Causes a service to be automatically loaded on the next device reboot.

unregister <service name>

A service will not be automatically loaded on the next device reboot.

command <service name> [arg1 arg2 ...]

Sends service-specific command(s) to a service.

help <service name>

Displays information about which service-specific commands are supported.

Note

<service instance> stands for the instantiation of a service, e.g., HTP0. <service name> stands for the service's name as it is displayed in the protected registry, e.g., HTTPD.

To control an OBEX services using Services.exe, type the following syntax at a command prompt:

s -d list
s services -d start obex0:
s services -d stop obex0:
s services -d refresh obex0:

The above commands will list all the available services on your device. Services.exe will start the OBEX service, then stop it, and then refresh its configuration parameters.

Adding the "-d" flag will generate a debug output, instead of console output.

See Also

Concepts

Services.exe Application Development

Other Resources

Services.exe