如何在Windows 8上从PowerShell运行Metro应用程序? [英] How to run a Metro-App from PowerShell on Windows 8?

查看:248
本文介绍了如何在Windows 8上从PowerShell运行Metro应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相关于超级用户的其他问题,我试图从命令行运行基于Metro的应用程序。根据对我的超级用户问题的评论,我可能在PowerShell命令或脚本中找到一个answear。我已经尝试,但发现任何互联网参考有关PowerShell和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...

所以,有一些特定的方式/命令来调用和运行Metro风格应用程序从Windows PowerShell命令在Windows 8?

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

推荐答案

没有直接的方法来做到这一点,但有一些间接的方式。

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

vsdebuglaunchnotify附带Visual Studio,可以从PowerShell中调用。

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

您可以创建自己的exe

You could create your own exe that uses IApplicationActivationManager.

如果应用程序与任何文件类型相关联,您可以启动相关文件。

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

MSDN上的此主题涵盖了更多信息:

More information is covered in this thread on MSDN:

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

这篇关于如何在Windows 8上从PowerShell运行Metro应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆