Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if((get-process "battle.net" -ea SilentlyContinue) -eq $Null){
- "Not Running"
- $Command = "c:\Program Files (x86)\Battle.net\Battle.net Launcher.exe"
- & "$Command"
- Start-Sleep -s 10
- }
- else{
- "Running"
- }
- $Command = "c:\Program Files (x86)\Battle.net\Battle.net Launcher.exe"
- $Parms = '--exec="launch ZEUS"'
- $Prms = $Parms.Split(" ")
- & "$Command" $Prms
- $processNameToWaitForExit = 'blackopscoldwar'
- do
- {
- Start-Sleep -Seconds 60
- } while (Get-Process -Name $processNameToWaitForExit -ErrorAction SilentlyContinue)
RAW Paste Data