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
Optimalcompression - Saves the resulting archive as
C:\Archives\Documents.zip -DestinationPathadds.zipif it is not present.-LiteralPathcan be used if you require naming it without.zip.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents