使用Powershell启动Metro风格的应用程序 [英] Launch Metro style apps using powershell

查看:77
本文介绍了使用Powershell启动Metro风格的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Windows 10编写Powershell脚本,该脚本将自动启动Metro风格的应用程序. Start-Process cmdlet似乎应该可以工作,但是除非提供.exe

I am trying to write a powershell script for windows 10 that will automatically launch a Metro-style app. The Start-Process cmdlet seems like it should work, but I cannot get it to launch anything unless I provide a path to the .exe

例如,以下输入有效:

    Start-Process 'C:\Program Files\Internet Explorer\iexplore.exe'

不幸的是,Metro风格的应用程序没有可执行文件.我需要使用什么文件来启动它们? 例如,如果要启动Windows Store,我该怎么做?

Unfortunately, Metro-style apps do not have an executable file. What file do I need to use to launch them? If I wanted to launch Windows Store for example, how would I do that?

谢谢

推荐答案

Store Apps只能由Shell启动.试试这个:

Store Apps can only be started by the shell. Try this:

explorer.exe shell:AppsFolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App

这篇关于使用Powershell启动Metro风格的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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