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

后端 未结 2 513
醉梦人生
醉梦人生 2021-02-14 02:22

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

2条回答
  •  遇见更好的自我
    2021-02-14 02:46

    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

提交回复
热议问题