Sol*_*lex 6 powershell
我有一些从C#代码部分触发的powershell脚本.
它们运行非交互式,无法确认任何命令.
在Powershell中,我们可以设置ErrorActionPreference全局$ErrorActionPreference = "Stop"
ErrorActionPreference
$ErrorActionPreference = "Stop"
是否有相同的方法在每个命令上设置confirm参数为$ false(如果存在)?
CB.*_*CB. 4
您可以尝试:
$ConfirmPreference = "None"
在这里阅读
归档时间:
12 年,6 月 前
查看次数:
1533 次
最近记录:
12 年,5 月 前