如何從 .ps1 腳本終止終端/PowerShell 視窗?我希望它以exit命令列的方式作業,但是當我將它放在 PowerShell 腳本中時,它只會終止腳本。
uj5u.com熱心網友回復:
Environment.Exit()將終止整個程序:
# replace 0 with a non-0 error code if you want to indicate some sort of failure
[Environment]::Exit(0)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/437423.html
標籤:电源外壳 贝壳 终端 出口 powershell-4.0
