Compress-Archive with wildcard
suggest changeCompress-Archive -Path C:\Documents\* -CompressionLevel Optimal -DestinationPath C:\Archives\Documents.zip
This command:
- Compresses all files in
C:\Documents
- Uses
Optimal
compression - Save the resulting archive in
C:\Archives\Documents.zip
-DestinationPath
will add.zip
if not present.-LiteralPath
can be used if you require naming it without.zip
.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents