Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Delete folders from zip file (https://www.kinook.com/Forum/showthread.php?t=1339)

tim.calderwood 10-31-2005 01:36 PM

Delete folders from zip file
 
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 10: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 12:16 PM

Great solution to a large problem...
 
1 Attachment(s)
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...


All times are GMT -5. The time now is 01:35 AM.


Copyright © 1999-2023 Kinook Software, Inc.