7zip unzipping fails when destination path is given by parameter [Powershell]

后端 未结 1 1157
甜味超标
甜味超标 2021-01-26 11:26

I am automating installation through a Powershell script and am having some issues with unzipping to a path given by a parameter rather than being hardcoded. The unzipping seems

1条回答
  •  轮回少年
    2021-01-26 12:04

    Try it this way:

    & $7zipexe x $zipFile `-p$zipFilePassword `-o$path -y
    

    0 讨论(0)
提交回复
热议问题