Last active
October 30, 2023 13:56
-
-
Save Malix-off/0da130a84ac2f9899539901468485bd9 to your computer and use it in GitHub Desktop.
Update Launcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Gists | |
*/ | |
# Environment | |
*env* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[string[]] $programPathArray = @( | |
'C:\Users\alixb\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Steam\Steam.lnk' | |
'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\EA\EA Updater.lnk' | |
'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\EA\EA.lnk' | |
'C:\Users\alixb\OneDrive\Bureau\Battle.net.lnk' | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Add-Newline { | |
Write-Host "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Imports | |
. ./functions.ps1 | |
. ./database.ps1 | |
# Main | |
foreach ($programPath in $programPathArray) { | |
Write-Host "Launching $((Get-Item $programPath).BaseName)" | |
Start-Process -FilePath $programPath | |
} | |
Add-Newline | |
Write-Host "Done" | |
Add-Newline | |
Pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment