다음을 통해 공유


Running the Scripting Host Tool (Windows CE 5.0)

Send Feedback

To run a script on a target device with the Scripting Host tool, you must add the Cescript.exe file to the release directory.

To run a script on a target device with the Scripting Host tool

  1. In %_WINCEROOT%\Others\Wcetk\<CPU>, copy the Cescript.exe file to the release directory.

    - or -

    Add support for the Windows CE Test Kit (CETK) to the Windows CE operating system (OS) for the target device.

    For information about adding support for the CETK to your Windows CE OS, see CETK Setup.

  2. Copy the file for the script to the release directory.

    - or -

    Copy the file for the script to the file system on the target device.

  3. Run the Cescript command with your choice of parameters.

    The following example shows the syntax for the Cescript command.

    Cescript [-L LogFile] Filename
    

Parameters

  • -L LogFile
    Optional. File name of the .log file where Cescript.exe writes information about the execution of the script. If you do not specify this parameter, Cescript.exe writes information to the Cescript.log file.

    A .log file can be accessed by only a single instance of Cescript.exe at a time. To run multiple instances of Cescript.exe, specify a unique .log file name for each instance of Cescript.exe.

  • Filename
    File name of the script. To run a script located in the release directory, add a \rem\ prefix to the file name. This parameter is required.

You can modify a script by calling from the script one of more intrinsic functions supported by the Scripting Host tool. For more information, see Scripting Host Functions.

See Also

Scripting Host Tool

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.