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:
- $sourcePath: Provide the folder location where the files to be zipped are placed
- $targetPath: Provide the folder location where the zipped files will be placed
- $currentFileExtension: The extension of the files to be zipped