Dear @Niraj
To use RPC, you need to have an Windows Mobile Device Center connection (it used to be ActiveSync in older Windows Desktop versions) over USB.
taskkill
is not appropriate to communicate with a WinCe device.
The only proper way I see is:
-
Write a command line application for WinCe which kills the application.
Let’s call this applicationniraj_kill.exe
-
Copy this application onto your target device.
For example into the folder\Flashdisk
-
Download “Windows Mobile Developer Power Toys” and install them on your PC
-
In the Powertoys installation folder, you will find a folder
RAPI_Start
, which contains a toolrapistart.exe
-
With
rapistart
you can remote start any random application. To kill your application, enter the following command on your PC:rapistart \Flashdisk\niraj_kill.exe
I don’t know your reasoning for wanting to remotely kill this application. Maybe a general remote access to your device would be preferable? There’s the Remote Display feature, which allows you to see the full desktop of the target device and interact with it using the PC mouse and keyboard.
This option is not limited to ActiveSync, but there is only an Ethernet version available.
Regards, Andy