Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Define an array of applications to start
- $applications = @(
- # "C:\Program Files (x86)\NaturalPoint\TrackIR5\TrackIR5.exe",
- "D:\DCS-SimpleRadio-Standalone\SR-ClientRadio.exe"
- # "C:\Program Files (x86)\JoyToKey\JoyToKey.exe",
- # "F:\DCS World\bin-mt\DCS.exe"
- )
- # Loop through each application
- foreach ($app in $applications) {
- # Check if the application is already running
- $running = Get-Process | Where-Object {$_.MainModule.FileName -eq $app}
- # If the application is not running, start it
- if (-not $running) {
- Start-Process -FilePath $app -Verb RunAs
- }
- Start-Sleep -Seconds 5 # Add a 5-second delay
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement