Skip to content

Instantly share code, notes, and snippets.

@kenrmayfield
Forked from Chinoman10/startup apps.vbs
Created April 17, 2025 00:55
Show Gist options
  • Select an option

  • Save kenrmayfield/319231d0132bf8f863a2bd7f479dd3ad to your computer and use it in GitHub Desktop.

Select an option

Save kenrmayfield/319231d0132bf8f863a2bd7f479dd3ad to your computer and use it in GitHub Desktop.
PowerShell+VBScript to startup any Windows App or Program by it's name (without having to hardcode folder locations)
' Just put this file inside the folder: %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
' And replace the names of the programs to your liking
apps = Array("WhatsApp Desktop", "Stream Deck")
Set WshShell = CreateObject("WScript.Shell" )
For each app in apps
command = "Start Shell:AppsFolder\\\""$(Get-StartApps -Name \"""&app&"\"" | foreach {$_.AppID})\"""
pscmd = "powershell -command " & command
WshShell.Run pscmd,0
Next
Set WshShell = Nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment