CMD启动windows系统应用程序

CMD启动windows系统应用程序

在闲暇时间,思考了一下,比如一下常用的APP,用命令怎么打开,于是乎,研究了一下powershell,通过从powershell(或者微软官网)里面获取相应APP的AUMID,得到这些AUMID后就可以很方便的通过cmd来启动。

方法一:
通过powershell来获取AUMID,需要用get-appxpackage,如获取相机的AUMID: get-appxpackage Microsoft.ZuneMusic

Name : Microsoft.ZuneMusic
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 10.20022.11011.0
PackageFullName : Microsoft.ZuneMusic_10.20022.11011.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.ZuneMusic_10.20022.11011.0_x64__8wekyb3d8bbwe
IsFramework : False
PackageFamilyName : Microsoft.ZuneMusic_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
Dependencies : {Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe, Microsoft.ZuneMusic_10.20022.11011.0_neut
ral_split.language-zh-hans_8wekyb3d8bbwe, Microsoft.ZuneMusic_10.20022.11011.0_neutral_split.scale-
125_8wekyb3d8bbwe}
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok

然后再CMD中输入:explorer.exe shell:AppsFolder\Microsoft.ZuneMusic_8wekyb3d8bbwe!Microsoft.ZuneMusic

方法二:
比如我需要打开edge浏览器,只需要在cmd中输入
start microsoft-edge: “网址:”

参考网址:微软AUMID

此资料仅供学习,请勿用它途,否则后果自负

你可能感兴趣的:(CMD,powershell)