Export (0) Print
Expand All

Command Processor Shell (Windows Embedded CE 6.0)


For many devices, Windows Embedded CE includes a command processor shell (Cmd.exe) that is similar to Command.com in Windows 95 and Cmd.exe in Microsoft Windows NT®. This also includes devices without a display that may be running the optional telnet server, which uses the console as its command processor backend.

The command processor shell is a command-line-driven shell that provides console input and output, and a limited number of commands.

The following line shows the syntax for calling the command processor shell.

         [[ | ] string]


Carries out the command specified by string and then exits the command processor shell.


Carries out the command specified by string but allows the command process shell to remain active.


Specifies a command that you want to run. The supported commands can be found in the Command Processor Commands topic.

To obtain help with using the command processor, type help cmd at the prompt.

Windows Embedded CE allows you to write simple batch (.bat) files that use any of the supported commands.

You can redirect standard input or standard output data from or to a file respectively by using the less than (<) or greater than (>) characters. You can pipe data to another command by using the pipe (|) character.

The syntax of the command line supported by the command processor is as follows.

        COMMAND [OPTIONS] [[][] file1] [file2] [{, } COMMAND...]

The following table describes the different elements of the command line.

Element Description


Specifies the name of the command that you want to execute.


Specifies any parameters that you want to use for the command. For more information about the parameters available for each command, see the documentation for the command that you want to use.


Redirects text output of a command or program to a file.


Redirects error output of a program to a file.


Appends text output of a program to a file.


Appends error output of a program to a file.


Reads text input of a command or program from a file.


Separates two or more commands executed sequentially.


Separates two or more commands, but output of all commands except the last is sent as the input for the subsequent command.


Specifies the name of a file that receives the output of the command.


Specifies the name of a file provides the input for the command.

The Windows Embedded CE command processor does not support redirection in between command line arguments. Characters that redirect input or output should appear after all of the arguments in the command line.

Community Additions

© 2015 Microsoft