Hot Start: Effortlessly Launch App Store Apps Using Command Prompt
The Command Prompt is a versatile tool that can be used to automate various tasks on your Windows system, including launching App Store apps. In this article, we'll show you how to get a list of installed apps using PowerShell and then use Command Prompt to launch them.
Prerequisites
To follow this tutorial, you'll need the following:
- A Windows system with PowerShell and Command Prompt installed.
- Admin privileges to run PowerShell and Command Prompt.
First, we'll use PowerShell to get a list of all installed apps and their respective package full names:
PowerShell
# Get a list of all installed apps and their package full names
$apps = Get-AppxPackage | Select Name, PackageFullName
$apps | Format-Table -AutoSize
Save this code as a .ps1 file, for example, Get-InstalledApps.ps1, and run it using PowerShell with admin privileges:
PowerShell.exe -ExecutionPolicy Bypass -File "Get-InstalledApps.ps1"
Once you have a list of installed apps and their package full names, you can use Command Prompt to launch them:
cmd
::set appName=
::set appFullName=(Get-Content C:\path\to\your\list.txt | Where-Object { $_.Name -eq $appName }).PackageFullName
start "" "PowerShell.exe" -ArgumentList "-Command & { Start-Process -FilePath ""%AppPath%\AppXManifest.xml"" -ArgumentList ""/unregserver,/quiet,/norestart -Wait; Start-Process ""%~dp0\.exe"" } -Wait -Verb runas
exit
Replace with the name of the app you want to launch, C:\path\to\your\list.txt with the path to the text file containing the list of installed apps and their package full names, and with the name of the app's executable file. Save this code as a .bat file, for example, LaunchApp.bat, and run it using Command Prompt with admin privileges:
cmd.exe /k "cd C:\path\to\your\folder & call LaunchApp.bat"
In this article, we showed you how to get a list of installed apps using PowerShell and then use Command Prompt to launch them. This technique can be useful for automating the launching of frequently used apps, especially when dealing with a large number of apps.