Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

how to add multiple files into one ZIP file using Write-Zip

$
0
0
Hi

I am Using PS 3.0 and PSCX module from below link to ZIP the output file.

http://stam.blogs.com/8bits/2010/06/create-zip-archives-with-powershell.html

Its working for one file but I need to include all output file inot one ZIP files as given below but its not working..

I am trying below command but not working..


Write-Zip "C:\DAILYCHECK\dcdiag.txt replication.txt replication_sum.txt" "c:\DAILYCHECK\daily_dc_health_check.zip"

Viewing all articles
Browse latest Browse all 21975

Trending Articles