-1

I am trying to find a way to compress/zip folders in a file-share.

There are some folders that need to be omitted. However all the folders that I need compressed have names that are 29 characters long.

I was looking into both using a bat file or a powershell script. Also was looking into using 7zip.

Any suggestions or help would be great.

henrycarteruk
  • 12,708
  • 2
  • 36
  • 40

1 Answers1

0

In Powershell 5.0 there is a new module called: Microsoft.PowerShell.Archive

From there you can use Compress-Archive and Expand-Archive to easily generate .zip files.

N.R.
  • 230
  • 3
  • 11