I can launch m开发者_JS百科y 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
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.
--> Go to this file directory C:\Program Files (x86)\Microsoft Device Emulator\1.0\"
--> Use this command "DeviceEmulator.exe" "C:\Program Files (x86)\Windows Mobile 6.5.3 DTK\PocketPC\Deviceemulation\0409\PPC_USA_GSM_VR.BIN" /a /battery /batterycharge 100 /cpucore ARMv5 /memsize 256 /s "E:\MyCustomEmulator.dess" /skin "C:\Program Files (x86)\Windows Mobile 6.5.3 DTK\PocketPC\Deviceemulation\Pocket_PC_Phone\Pocket_PC_PE.xml" /tooltips ON /vfp false /vmname "My Custom Emulator" /z /speakerphone 7
Note: .dess file Save the Emulator state. you can resume that saved state later. .BIN is the actual emulator os. it is available when installing the windows mobile 6.5 sdks .xml is the outer skin .
For more Details Visit this microsoft documentation page
精彩评论