使用 powershell 启动 Metro 风格的应用程序 [英] Launch Metro style apps using powershell
本文介绍了使用 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 FilesInternet Exploreriexplore.exe'
遗憾的是,Metro 风格的应用程序没有可执行文件.我需要使用什么文件来启动它们?例如,如果我想启动 Windows 应用商店,我该怎么做?
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:AppsFolderMicrosoft.WindowsAlarms_8wekyb3d8bbwe!App
这篇关于使用 powershell 启动 Metro 风格的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文