다음을 통해 공유


Including a Command Processor (Windows CE 5.0)

Send Feedback

For many target 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 in an OS design, include the Cmd and Console components in the Cesysgen.bat file.

To use the Command Processor shell as a command-line interface for target 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 target device.

See Also

Shell OS Design Development | Command Processor Shell | Command Processor Commands

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.