Share via


Running the Scripting Host Tool (Windows Embedded CE 6.0)

1/6/2010

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 Cescript.exe to the release directory.

    **- OR -

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

    For information about adding support for the CETK to your Windows Embedded 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
    Required. File name of the script. To run a script located in the release directory, add a \rem\ prefix to the file name.

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

Other Resources

Scripting Host Tool