Windows Media Center Shell (ehshell.exe) Command Line Switches and Options

Windows Media Center is a digital home entertainment hub application included in Windows XP Media Center Edition and higher-end editions of Windows Vista, and has built-in support for remote control for keyboard-less operation. Usually when using WMC (Windows Media Center), your computer will boot directly to Media Center interface. However, in some situation such as for debugging and troubleshooting, the following command line switches and options available to Windows Media Center shell (ehshell.exe) may be useful.

ehshell.exe supports the following command line switches:

ehshell.exe /entrypoint:{APP_GUID}\{ENTRYPOINT_GUID}

This parameter starts Windows Media Center and navigates directly to a registered entry point. APP_GUID and ENTRYPOINT_GUID are strings that match the GUIDs of the desired application and entry point identifiers for the entry point to be launched. You must have previously registered the application using the RegisterApplication API or RegisterMceApp.exe for this command line switch to work correctly.

ehshell.exe /url:<url>

This parameter starts Windows Media Center and navigates directly to a Hosted HTML application or XBAP application specified by <url>.

ehshell.exe /homepage:<url>

This parameter starts Windows Media Center and navigates directly to a Windows Media Center Presentation Layer Web Application specified by <url>.

ehshell.exe /addinfallbackpath:<path>

This parameter starts Windows Media Center and causes it to use to locate and load add-in assemblies. This location is only used after Windows Media Center attempts to load add-in assemblies from the global assembly cache (GAC) and %windir%\ehome. This switch can be combined with the /entrypoint switch described above to allow prototyping of Windows Media Center applications without needing to install an updated assembly to the GAC each time you rebuild your project in Visual Studio.

ehshell.exe /gdi

This parameter starts Windows Media Center in GDI graphics mode. The GDI graphics mode simulates a low-fidelity graphics environment that does not support DirectX graphics mode.

ehshell.exe /widescreen

This parameter starts Windows Media Center with a 16 x 9 aspect ratio to enable testing widescreen display resolutions on systems that only have a 4 x 3 monitor installed. This switch works when Windows Media Center is started in windowed mode but not in full-screen mode. If you launch Windows Media Center with the /widescreen switch and it starts in full-screen mode, you will need to click the taskbar button in the top right corner of the Windows Media Center UI to change it to windowed mode, then close Windows Media Center and re-launch it using the /widescreen switch to see the correct 16 x 9 aspect ratio.

ehshell.exe /rtl

This parameter starts Windows Media Center in right-to-left display mode. This is useful for simulating how your application will look and behave on a right-to-left OS language such as Arabic or Hindi.

ehshell.exe /directmedia:general

Launches Windows Media Center in full screen mode, a new switch as part of Windows HotStart feature that can be used to launch Windows Media Center and cause it to navigate directly to one of the built-in experiences.

ehshell.exe /directmedia:music

Launches Windows Media Center in full screen mode and navigates to the music library, a new switch as part of Windows HotStart feature that can be used to launch Windows Media Center and cause it to navigate directly to one of the built-in experiences.

ehshell.exe /directmedia:video

Launches Windows Media Center in full screen mode and navigates to the video library, a new switch as part of Windows HotStart feature that can be used to launch Windows Media Center and cause it to navigate directly to one of the built-in experiences.

ehshell.exe /directmedia:tv

Launches Windows Media Center in full screen mode and navigates to the recorded TV library.

ehshell.exe /directmedia:pictures

Launches Windows Media Center in full screen mode and navigates to the picture library, a new switch as part of Windows HotStart feature that can be used to launch Windows Media Center and cause it to navigate directly to one of the built-in experiences.

ehshell.exe /directmedia:discplayback

Launches Windows Media Center in full screen mode and begins playback of the disc in the drive by reusing AutoRun code, a new switch as part of Windows HotStart feature that can be used to launch Windows Media Center and cause it to navigate directly to one of the built-in experiences.


5 Responses to “Windows Media Center Shell (ehshell.exe) Command Line Switches and Options”

  1. MediaCenter DVD Gallery beim Start direkt anspringen « NutsCracker’s Blög
    August 22nd, 2008 03:55
    5

    [...] http://www.mydigitallife.info/2007/06/11/windows-media-center-shell-ehshellexe-command-line-switches... [...]

  2. FeLiZk.dk » Blog Archive » Vista Media Center SDK Guide 1
    April 11th, 2008 22:48
    4

    [...] http://www.mydigitallife.info/2007/06/11/windows-media-center-shell-ehshellexe-command-line-switches... [...]

  3. William Haskell
    October 12th, 2007 03:54
    3

    I can’t tv or play a dvd because i get some type of error messege saying decoder or application.

  4. Taglio
    June 13th, 2007 01:48
    2

    Very nice article and useful tips thank you. Before reading this i haven’t any idea about all the function of windows media center.

    Only one tips: remember to put C:\Windows\ehome in
    your Path under Computer -> Sytem Properties -> Advanced -> Environment Variables

    Best Regards, Riccardo Giuntoli

  5. Windows Media Center Shell (ehshell.exe) Command Line Switches and Options » D’ Technology Weblog: Technology News & Reviews
    June 12th, 2007 21:41
    1

    [...] Full article [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

ehshell.exe - ehshell.exe download - ehshell - windows media center exe - media center commaND LINE - enter the full shell command line - windows media center command line - ehshell command line - windows media center executable - media center exe - download ehshell.exe - ehshell.exe media center - launch windows media player from command line - ehshell media center - media center executable - registermceapp.exe download - vista media center command line - ehshell parameters - MEDIA CENTER SHELL - windows media player command line - ehshell.exe - ehshell.exe vista - MCE command line - media center switches - eshell.exe - disable ehshell.exe - ehshell parameter - ehshell.exe error media center - ehshell is display went try to launch xp media center software - ehshell exe media center - ehshell.exe application error - windows media centre command line - ehshell arguments - ehshell.exe command line - windows media center.exe - RegisterMCEApp.exe - ehshell download - download ehshell - Windows media center .EXE - ESHELL.EXE download - all - MediaCenter exe - mce shell - windows media center ehshell.exe - windows media center widescreen - ehshell.exe error - ehshell.exe switches - media center command line switches - ehshell.exe media center error - wmc.exe - ehshell.exe command line switches - ehshell entrypoint - telecharger ehshell.exe - ehshell.exe location - media center command - ehshell command line options - mediacenter.exe - media center.exe - enter the full shell command - ehshell.exe parameters - ehshell.exe /gdi - ehshell.exe windows media center - mce.exe - media center command line options - media center commands - launch windows media player command line - vista media center entrypoint - enter full shell command line - Media Center ehshell.exe - windows hotstart - windows media center exe location - windows media center eshell error will not launch - where is windows media center exe - ehshell.exe /url:url - windows media center ehshell.exe error -