Guest User

COD-CW.ps1

a guest
Nov 21st, 2020
38
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if((get-process "battle.net" -ea SilentlyContinue) -eq $Null){
  2. "Not Running"
  3. $Command = "c:\Program Files (x86)\Battle.net\Battle.net Launcher.exe"
  4. & "$Command"
  5. Start-Sleep -s 10
  6. }
  7.  
  8. else{
  9. "Running"
  10.  
  11. }
  12.  
  13. $Command = "c:\Program Files (x86)\Battle.net\Battle.net Launcher.exe"
  14. $Parms = '--exec="launch ZEUS"'
  15.  
  16. $Prms = $Parms.Split(" ")
  17. & "$Command" $Prms
  18. $processNameToWaitForExit = 'blackopscoldwar'
  19. do
  20. {
  21. Start-Sleep -Seconds 60
  22. } while (Get-Process -Name $processNameToWaitForExit -ErrorAction SilentlyContinue)
RAW Paste Data