小编Luk*_*ken的帖子

PowerShell命令行上的链命令

PowerShell是否具有与sh(和衍生物)的此命令构造等效的内容:

$ cmd1 && cmd2
Run Code Online (Sandbox Code Playgroud)

其中,cmd2仅在运行时cmd1退出成功地?

我知道你可以用分号组合命令.但是,这忽略了命令的退出状态.

shell powershell conditional powershell-2.0

12
推荐指数
2
解决办法
3万
查看次数

标签 统计

conditional ×1

powershell ×1

powershell-2.0 ×1

shell ×1