Monday 24 January 2011

Shell with command line parameters

Shell.exe runs on your target because of the Launch10 entry in the Registry. It's the counterpart of the Target Control Service in your Platform Builder IDE (Windows CE> command prompt).
But did you ever tried to run Shell.exe in a second instance?
It is possible to call Shell.exe with command line parameters,
obviously it must be top secret because it's not documented.

shell -c redirects the input and output to the command line. So you are able to open your Target Control Service directly on the target.
Shell -d redirects the output to the output window of the debugger
Additionally, you can add any Target Control command.
Examples:
shell -d mi full will print the "mi full" output to the debugger.
shell -c gi proc will print all processes directly to the command window on the target.

No comments: