Imagegen Command-Line Reference

Use Imagegen.exe to generate and store Device Emulator images.

Note

You need administrator permission to use any option that affects the global cache. The global cache is located at drive:\Documents and Settings\All Users\Application Data\Microsoft\Device Emulator.

Imagegen.exe is included with Visual Studio, and the default location is drive:\Program Files\Microsoft Device Emulator\1.0.

Note

By default, Device Emulator version 3.0 overwrites previous installations and is installed at drive:\Program Files\Microsoft Device Emulator\1.0.

Imagegen [/i] [/g] [/l] [/u]

Parameters

Option

Description

/i

The GUID that identifies the device whose state is to be saved.

/g

Targets the global saved-state cache instead of the per-user cache.

/l

Sets the locale ID for the datastore.

If you do not specify an ID, the ID value defaults to 1033.

/u

Clears the global cache.

Example

The following line of code specifies the Japanese datastore, clears the global cache, and generates Smartphone and Pocket PC images targeting the global cache.

Imagegen /l 1041 /u /g /i E282E6BE-C7C3-4ece-916A-88FB1CF8AF3C /i DD63BCFB-BCB3-407c-9CDC-219A0240CBA0

See Also

Tasks

How to: Generate Saved-State Files

Concepts

Saved-State Files

Other Resources

Device Emulator Reference