Export (0) Print
Expand All

Command Processor Shell (Windows Embedded CE 6.0)

1/6/2010

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]

/C

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

/K

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

string

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

COMMAND

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

OPTIONS

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.

2>

Redirects error output of a program to a file.

>>

Appends text output of a program to a file.

2>>

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.

file1

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

file2

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

Ee499728.note(en-US,WinEmbedded.60).gifNote:
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

ADD
Show:
© 2014 Microsoft