Search code examples
c#windows-mobileemulationwindows-mobile-6.5

How to Run Windows Mobile 6.5 Applications Using Emulator From Command Line


I can launch my windows mobile application using the emulator via visual studio in the normal fashion, but i would like to run my application from the command line and preferably pass in some parameters. Is this possible?

I can launch the emulator ONLY using the command line like so:

DeviceEmulator.exe example.bin

But how can i possibly launch my application using this emulator via the command line?

Cheers


Solution

  • If you save the state of your emulator then you can run the created .DESS file and pick up right where the saved state left off. You can put this in a batch file:

    start DeviceEmulator.exe /s "C:\Documents and Settings\user\Application Data\Microsoft\Device Emulator{E4FC2BC5-3AC4-452C-A893-AD4F273C3A7C}.dess" /nosecurityprompt /memsize 256

    You'll need to change the path and file name to match your system. Here is a list of the DeviceEmulator.exe command line switches.

    If you're looking for a more elegant solution, you can control DeviceEmulator.exe via a COM interface. See MSDN for more information.