Skip to content

jonmchan/windows-app-cmdline-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows CommandLine App Launcher

New apps installed from the Microsoft Store are nearly impossible to easily launch from command line. The executables are hidden in some obscure package folder and managed by the app store. You are able to see a list of all the apps if you run start shell:appsFolder, however this is less than helpful for scripting or launching from command line.

Apps Folder

This tool was written to easily launch Microsoft Apps from command line such as for launching apps in different virtual desktops using vdesk.

Usage:

List all Applications

.\launch.ps1 -list

 .\launch.ps1 -list
...
Google Chrome
Slack
Sticky Notes
Phone Link
Solitaire & Casual Games
...

Launch Application

.\launch.ps1 [application]

.\launch.ps1 Slack

# multiword programs add quotes

.\launch.ps1 "Phone Link"

Launch.bat Helper Script

launch.bat is included as a convenience wrapper script to set the ExecutionPolicy and run launch.ps1. It is useful if your system defaults to not run Powershell scripts.

.\launch.bat -list

 .\launch.bat -list
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

...
Google Chrome
Slack
Sticky Notes
Phone Link
Solitaire & Casual Games
...

Possible future improvements:

shell:appsFolder include more than Microsoft Apps pulling apps from the start menu as well. Old apps will fail to launch with the launcher. We can either detect if it is not a Microsoft Store app and hide it from the .\launch.ps1 -list output or we can detect if a legacy application is passed and launch it properly. As of right now, old apps will not launch and output The system cannot find the file specified.

References:

About

Launch Microsoft Store Apps from Command Line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published