PDA

View Full Version : Delete folders from zip file


tim.calderwood
10-31-2005, 02:36 PM
I am trying to processes 300 zip files that I need to delete a folder out of. I know how to loop through the files but for the life of me, I can not figure out how to use the zip function to delete a folder out of a zip file. The folder name is 'external' and I need to delete it and all of the files that are located in that folder. Because these zip files are relative large, ie 400megs, I rather not extract, delete, then zip again if at all possible.

Thanks

kinook
11-01-2005, 11:50 AM
AFAICT, delete in the ZIP Files action has never worked properly. It should work with this patch [1]. Entering external\*.* in the Include field will delete that folder and all subfolders and files (the folder external must exist in the root of the ZIP file, otherwise you must specify the path to the folder [i.e. abc\def\external\*.*]). With a large ZIP file, you may also get better performance by checking the 'Append to existing file' checkbox on the Options tab.

Note that a delete action is always recursive.

[1] http://www.kinook.com/Download/VisBuildProEval.exe

tim.calderwood
11-01-2005, 01:16 PM
Thanks for your quick help on how to fix our problem. I have attached the script I used to clean up our zip files if anybody wants to see what we did. Once again, Kinook rocks...