Adding files to existing Zip with Write-Zip

Topics: Developer Forum, User Forum
May 10, 2007 at 7:53 PM
Is it possible to add files to an existing Zip with Write-Zip?

I am writing files to different zips based on date attributes. The attributes are being validated against a rules configuration to determine if (and to which Zip) the file should be archived to, so I am passing the files individually to Write-Zip but often repeating the Zip file name.

When using the -NoClobber parameter, I get an exception indicating the file already exists. Is there no way to put multiple files in a Zip without passing an Object[] or path with wildcards?
May 11, 2007 at 6:32 PM
unfortunately - noclobber means "throw an excpetion if the file exists" :-( It would be nice if there was an "add file to existing zip option"
May 12, 2007 at 3:22 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.