powershell - Appending files and folders with PSCX Write-Zip does not respect folder structure -


I've just downloaded the latest version and I am struggling to add files and folders to an existing zip file. .

I am running PowerShell ISE to check the command, and I am currently in my profile folder with the folder structure that I am testing with:

  - User | --MyShare | - Test | - container.zip | - Some folders | - file1.txt | - file2.txt  

My hint is in the user \ MyUser \ test folder, and I am running the following line:

Dir SomeFolder | Write-zip-optpath: container.zip -appand

When I open the updated zip file, then there is a folder for each folder of my entire structure, which is users , like this:

  - container.jip | - User | --MyShare | - Test | - Some folders | - file1.txt | - file2.txt  

but I want the SomeFolder directly in the root of the zip file, such as:

  - container.jip | - Some folders | - file1 The strange thing is that if I delete the  -Append  switch and make the CMDlet a new zip, then what is the expected structure in it? 


Comments