0
votes
2answers
470 views

Passing a powershell variable as output directory in 7zip

I need to execute something like 7za e $file_path -oC:\Destination inside a powershell script, but substitute destination folder (C:\Destination) with a variable. Some like: 7za e $file_path ...
2
votes
1answer
2k views

Have PowerShell zip the contents of a bunch of folders, individual ZIP file for each folder

I would to have PowerShell zip the contents of a bunch of folders and get an individual ZIP file for each folder. Recently, I asked how to do this with a .bat file and an answer was provided. for /D ...