7

How can I run an app installed from Windows Store (https://github.com/microsoft/terminal) from the command line, please?

1
8
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
  • Note that the suffix won't always be !App, and the name of the folder won't necessarily be easy to match with the actual app ((for example, for Gears Tactics it's Microsoft.GanderBaseGame_8wekyb3d8bbwe!GanderShippingInternal). The link at the bottom of the answer has a more foolproof way to get the proper command line. I took a shortcut and used SysExporter to get the execution command from the properties dialog (nirsoft.net/utils/sysexp.html). – Ohad Schneider Nov 24 '20 at 0:32
  • How to pass a file to open with this app using this method ? – Chamod Jun 26 at 18:08
0

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

https://msdn.microsoft.com/windows/uwp/launch-resume/handle-uri-activation

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
0

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

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.