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 - Save the resulting archive in
C:\Archives\Documents.zip -DestinationPathwill add.zipif 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