Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Jun 5, 2024
2 parents 6d8a229 + dd575b0 commit 122d46c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/en-US/Compress-ZipArchive.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ This cmdlet should be able to handle compression same as `ZipFile.CreateFromDire

```powershell
Get-ChildItem .\path -Recurse -Filter *.ext |
Compress-ZipArchive -DestinationPath dest.zip
Compress-ZipArchive -Destination dest.zip
```

### Example 2: Compress all `.txt` files contained in all folders in the Current Directory

```powershell
Compress-ZipArchive .\*\*.txt -DestinationPath dest.zip
Compress-ZipArchive .\*\*.txt -Destination dest.zip
```

### Example 3: Compress all `.ext` and `.ext2` from a specific folder

```powershell
Compress-ZipArchive .\*.ext, .\*.ext2 -DestinationPath dest.zip
Compress-ZipArchive .\*.ext, .\*.ext2 -Destination dest.zip
```

### Example 4: Compress a folder using `Fastest` Compression Level
Expand All @@ -86,15 +86,15 @@ Compress-ZipArchive .\path -Destination myPath.zip -CompressionLevel Fastest

```powershell
Get-ChildItem .\path -Recurse -Directory |
Compress-ZipArchive -DestinationPath dest.zip
Compress-ZipArchive -Destination dest.zip
```

### Example 6: Replacing an existing Zip Archive

Demonstrates the use of `-Force` parameter switch.

```powershell
Compress-ZipArchive -Path .\path -DestinationPath dest.zip -Force
Compress-ZipArchive -Path .\path -Destination dest.zip -Force
```

### Example 7: Adding and updating new entries to an existing Zip Archive
Expand All @@ -103,7 +103,7 @@ Demonstrates the use of `-Update` parameter switch.

```powershell
Get-ChildItem .\path -Recurse -Directory |
Compress-ZipArchive -DestinationPath dest.zip -Update
Compress-ZipArchive -Destination dest.zip -Update
```

## PARAMETERS
Expand Down

0 comments on commit 122d46c

Please sign in to comment.