Powershell Command Processing (Passing in Variables)

后端 未结 5 1924
孤独总比滥情好
孤独总比滥情好 2021-02-15 23:21

I\'m creating a Powershell script to deploy some code and part of the process is to call a command-line compression tool called RAR.EXE to back-up some folders.

I\'m at

5条回答
  •  [愿得一人]
    2021-02-15 23:50

    it's an artifact of using cmd /c, I think. running

    $param = "echo foo"
    cmd /c $param
    

    works fine. Unless you have a real code example, it's a bit hard to trouble shoot.

提交回复
热议问题