Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a Metro-App from PowerShell on Windows 8?

Related to another question on Superuser, I'm trying to run a Metro based application from the command-line. According to a comment on my superuser question, I could maybe find an answear on a PowerShell command or script. I already tried but found anything on any internet reference about PowerShell and Windows 8...

So, there is some specific way/command to call and run a Metro-style application from a PowerShell command on Windows 8?

like image 650
Diogo Avatar asked Jun 11 '12 17:06

Diogo


People also ask

How do I open an app in PowerShell?

To execute the program, you need to use the ampersand (&) sign followed by the full path of the program. Another way to execute the program is to browse to that directory and run the program. and run the program name.


1 Answers

There is no direct way to do this but there are a couple indirect ways.

vsdebuglaunchnotify, which comes with Visual Studio, can be called from PowerShell.

You could create your own exe that uses IApplicationActivationManager.

If the app is associated with any file types you could launch an associated file.

More information is covered in this thread on MSDN:

http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/8d1b0861-5903-4289-8cb8-541ddaa012fb

like image 102
Jared Bienz - MSFT Avatar answered Sep 27 '22 18:09

Jared Bienz - MSFT