compress-archive
Verified for current stable LTS
Compress Archive Command: Set Compression Level Windows
Use for set compression level windows with Compress Archive. Exact CLI syntax to set compression level windows using Compress Archive.
When to use this: Use for set compression level windows with Compress Archive.
Command Syntax
Compress-Archive -Path <path\to\directory> -DestinationPath <path\to\directory.zip> -CompressionLevel <Optimal|Fastest|NoCompression> Compress-Archive -Path <path/to/directory> -DestinationPath <path/to/directory.zip> -CompressionLevel <Optimal|Fastest|NoCompression> Live Command Builder
Final Command
Compress-Archive -Path <path\to\directory> -DestinationPath <path\to\directory.zip> -CompressionLevel <Optimal|Fastest|NoCompression> Command Breakdown
-Path- Command Option
- Tool-specific option used by this command invocation.
-DestinationPath- Command Option
- Tool-specific option used by this command invocation.
-CompressionLevel- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to set compression level windows using Compress Archive.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Compress Archive Command: Compress Directory Windows
Compress-Archive -Path <path\to\directory> -DestinationPath <path\to\directory.zip> Compress Archive Command: Compress Multiple Files Windows Compress-Archive -Path <path\to\file1, path\to\file2, ...> -DestinationPath <path\to\files.zip> Compress Archive Command: Compress Single File Windows Compress-Archive -Path <path\to\file.txt> -DestinationPath <path\to\file.zip> Compress Archive Command: Update Existing Archive Windows Compress-Archive -Path <path\to\file> -DestinationPath <path\to\directory.zip> -Update Get Acl Command: Get Acl Registry Key Windows Get-Acl -Path {HKLM:\System\CurrentControlSet\Control} | Format-List Alternative Approaches
Alternative tools for similar operation intents.
Tar Command: Create A Compressed Archive And Write It To A File Using The File Extension To Automatically Determine The Compression Program
tar caf <path/to/target.tar.xz> <path/to/file1 path/to/file2 ...> Bunzip2 Command: Decompress Bzip2 File bunzip2 <file> Bun Pm Pack Command: Set Gzip Compression Level bun pm pack --gzip-level 5 Tar Command: Extract A Compressed Archive File Into The Current Directory Verbosely tar xvf <path/to/source.tar[.gz|.bz2|.xz]> Tar Command: Extract A Compressed Archive File Into The Target Directory tar xf <path/to/source.tar[.gz|.bz2|.xz]> -C <path/to/directory>