There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen blue screen of death boot bsod computer connection crash css dell display driver drivers email error explorer firefox firefox 3 freeze hard drive internet internet explorer itunes laptop malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem ram router security slow software sound trojan usb virus vista windows windows xp wireless
Tech Tips & Tricks
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > General Technology > Tech Tips & Tricks >
Windows Media Center - Command Line Switches (eg open directly to TV)


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
firestormer's Avatar
Computer Specs
Senior Member with 1,353 posts.
 
Join Date: Sep 2005
Location: UK
Experience: Skilled: Know all i know and little else
21-Nov-2007, 06:52 PM #1
Thumbs up Windows Media Center - Command Line Switches (eg open directly to TV)
Found this when trying to fix a wide-screen issue

http://www.mydigitallife.info/2007/0...s-and-options/

A practical use for these is to create a new shortcut using the following command lines.
If you don't already know ehshell.exe is Windows Media Center


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.
__________________
You say deviant like its a bad thing...

TSG has made me snow blind.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:35 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.