Launch MCEBrowser from Command-Line
Nick Clark asks: “Hey, is there a way to call MCEBrowser from the command line and open it up in Media Center at a certain web page?”
Well, yes there is. The executable for Media Center (ehshell.exe) supports several command-line options. One of them is the /url option, which allows you to specify the URL of a Hosted HTML Application to open.
In addition, MCEBrowser allows you to specify a URL to open as a parameter to it’s own URL.
So, in order to launch Media Center and open MCEBrowser to anpark.com, just create a batch file with the following command:
start c:\windows\ehome\ehshell.exe /url:”file:///C:/Program Files/ANPARK/MCEBrowser/MCEBrowser.html?url=http://www.anpark.com&”
Don’t forget the ampersand (&) after the url, since there’s an oddity (read: bug) in MCEBrowser that requires it. You may need to modify the paths included in this example, depending on your configuration.
This does cause some weird navigation behavior in Media Center. If you press the back button, Media Center will close. So, if you want to go to the Start page in Media Center, you’ll have to press the green button on the remote. Try it and you’ll see what I mean
