Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

PowerShell script to zip files individually

This is a simple Powershell Script to zip each file in a source folder location individually and place them in a target folder.

The Script is attached as a file to this blog, following needs to be done before executing the executing it:

  1. $sourcePath: Provide the folder location where the files to be zipped are placed
  2. $targetPath: Provide the folder location where the zipped files will be placed
  3. $currentFileExtension: The extension of the files to be zipped

ZipXlsxFiles.ps1.txt

Thank you

Share the post

PowerShell script to zip files individually

×

Subscribe to Msdn Blogs | Get The Latest Information, Insights, Announcements, And News From Microsoft Experts And Developers In The Msdn Blogs.

Get updates delivered right to your inbox!

Thank you for your subscription

×