Partager via


Including a Command Processor

For many devices, including those without a display, Windows CE includes a Command Processor shell that is similar to Command.com in Microsoft® Windows® 95 and Cmd.exe in Microsoft Windows NT®. It is a command-line-driven shell that provides a limited number of commands. To implement the Command Processor on a platform, include the Cmd and Console components in the Cesysgen.bat file.

To use the Command Processor shell as a command-line interface for devices with no displays, configure the Command Processor to operate over a serial port. The following example shows how to set the registry values to allow the Command Processor to operate over a serial port.

[HKEY_LOCAL_MACHINE\Drivers\Console]
    OutputTo = REG_DWORD:1                // Redirects CMD to COM1
    COMSpeed = REG_DWORD:19200            // Speed of serial connection

These registry settings redirect input and output for all console applications to the serial port, unless explicitly redirected to a file or other device.

See Also

Creating a Custom Shell | Command Processor Shell | Command Processor Commands

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.