How to open a Windows store app from command line?

How can I run an app installed from Windows Store () from the command line, please?

1

3 Answers

start shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App

By default an alias is enabled for Windows Terminal, so you can also use:

"%userprofile%\AppData\Local\Microsoft\WindowsApps\wt.exe"

Example app not from Microsoft:

start shell:AppsFolder\XINGAG.XING_xpfg3f7e9an52!App

Where the string XINGAG.XING_xpfg3f7e9an52
can be found as folder in %userprofile%\AppData\Local\Packages

Other ways of doing this are explained here

2

An easy way is to create a shortcut and then from the command line to execute the ".lnk" file generated.

1

Starting a normal app from the command line (or a script, or a scheduled task) is easy. Just start the executable. But apps that are installed from the Windows Store don't have executables. So how do you start them?

The simplest way is if the app has a custom protocol. If it does then it's just a case of calling start and then the protocol. So, you could do something like this:

start microsoftvideo:

If you want to add a custom protocol to your app see

If the app doesn't have its own custom protocol then you'll have to launch it via the shell. Actually, the shell has its own protocol so you call something like this:

start shell:AppsFolder\Microsoft.WindowsStore_8wekyb3d8bbwe!App

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like