loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
  • Ptt 大爆卦
  • PowerShell exit
  • 離開本站
你即將離開本站

並前往https://serverfault.com/questions/877661/powershell-script-check-exit-code

Powershell script - check exit code - Server Fault

use a try-catch block like this: Try { Restart-WebAppPool -Name $args[0] -ErrorAction stop echo "it worked" } Catch{ echo "it didn't work" }.

確定! 回上一頁

查詢 「PowerShell exit」的人也找了:

  1. Powershell exit
  2. PowerShell exit function
  3. PowerShell break
  4. PowerShell exit with error
  5. PowerShell if -not
  6. PowerShell pause
  7. Powershell get exit code
  8. PowerShell Write-Error

關於我們

pttman

pttman Muster

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿