Compress and Extract (Zip/Unzip) Files with Powershell

By: Cam Wohlfeil
Published: 2018-02-07 0000 EST
Modified: 2018-06-20 0000 EDT
Category: Solutions
Tags: powershell

Compress-Archive -Path c:\<filename>.txt, C:\<filename>.csv -DestinationPath c:\<filename>.zip -CompressionLevel Optimal
Expand-Archive -Path c:\<filename>.zip -DestinationPath c:\<folder name>

Don't worry about the red boxes around the colons, that's an issue with the PowerShell parser in my static site generator.

More Info: