Partager via


Storing Data from OSCapture in a Log File (Windows Embedded CE 6.0)

1/5/2010

At any time while the OSCapture.exe application runs on a target device, you can instruct it to store the data currently buffered in RAM to a log file. The following procedure shows the ways to trigger a running instance of OSCapture to store the data to a log file.

To store data from OSCapture.exe in a log file

  1. On the target device, run OSCapture using the command line

    oscapture.exe -c 
    

    - or -

    On the target device, have an application call the SetEvent function on the event named SYSTEM/OSCaptureTrigger.

You may find it convenient to create a shortcut that you can use to trigger OSCapture. If you place this shortcut file on the device start menu or desktop, you can click on it when you want OSCapture to store recent activity in a log file.

Note

Trigger OSCapture as many times as you like. If you capture to a file more than once, each subsequent time the most recent data is appended to the existing contents of the log file.

When you are done collecting data, you can view it with Remote Kernel Tracker after preparing it for viewing. For more information, see Preparing an OSCapture File for Viewing in Kernel Tracker.

For more information about creating a .lnk shortcut, see Creating a Shortcut File.

See Also

Other Resources

OSCapture.exe
SetEvent