@@ -61,19 +61,19 @@ This cmdlet should be able to handle compression same as `ZipFile.CreateFromDire
6161
6262``` powershell
6363Get-ChildItem .\path -Recurse -Filter *.ext |
64- Compress-ZipArchive -DestinationPath dest.zip
64+ Compress-ZipArchive -Destination dest.zip
6565```
6666
6767### Example 2: Compress all ` .txt ` files contained in all folders in the Current Directory
6868
6969``` powershell
70- Compress-ZipArchive .\*\*.txt -DestinationPath dest.zip
70+ Compress-ZipArchive .\*\*.txt -Destination dest.zip
7171```
7272
7373### Example 3: Compress all ` .ext ` and ` .ext2 ` from a specific folder
7474
7575``` powershell
76- Compress-ZipArchive .\*.ext, .\*.ext2 -DestinationPath dest.zip
76+ Compress-ZipArchive .\*.ext, .\*.ext2 -Destination dest.zip
7777```
7878
7979### Example 4: Compress a folder using ` Fastest ` Compression Level
@@ -86,15 +86,15 @@ Compress-ZipArchive .\path -Destination myPath.zip -CompressionLevel Fastest
8686
8787``` powershell
8888Get-ChildItem .\path -Recurse -Directory |
89- Compress-ZipArchive -DestinationPath dest.zip
89+ Compress-ZipArchive -Destination dest.zip
9090```
9191
9292### Example 6: Replacing an existing Zip Archive
9393
9494Demonstrates the use of ` -Force ` parameter switch.
9595
9696``` powershell
97- Compress-ZipArchive -Path .\path -DestinationPath dest.zip -Force
97+ Compress-ZipArchive -Path .\path -Destination dest.zip -Force
9898```
9999
100100### Example 7: Adding and updating new entries to an existing Zip Archive
@@ -103,7 +103,7 @@ Demonstrates the use of `-Update` parameter switch.
103103
104104``` powershell
105105Get-ChildItem .\path -Recurse -Directory |
106- Compress-ZipArchive -DestinationPath dest.zip -Update
106+ Compress-ZipArchive -Destination dest.zip -Update
107107```
108108
109109## PARAMETERS
0 commit comments