Zip/Unzip with Windows built-in capabilitiesTag(s): Misc Prog HowTo
ZIP using Powershell one-liner
// compress a file powershell Compress-Archive -Path .\SomeFile.ext -DestinationPath .\SomeFile.zip // compress a directory powershell Compress-Archive -Path .\SomeDir -DestinationPath .\SomeDir.zip
-Force
or -Update
option if you are planning on running on an existing ZIP file.
UNZIP using Powershell one-liner
// uncompress a file powershell Expand-Archive -Path .\SomeFile.zip -DestinationPath .\SomeFile.ext powershell Expand-Archive -Path .\SomeDir.zip -DestinationPath .\SomeDir
-Force
option if you are planning on running on an existing Destination path.