Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Thread Tools Rate Thread Display Modes
Old 10-31-2005, 01:36 PM
tim.calderwood tim.calderwood is online now
Registered User
Join Date: 05-20-2003
Posts: 13
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.

Reply With Quote
Old 11-01-2005, 10:50 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,749
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.

Reply With Quote
Old 11-01-2005, 12:16 PM
tim.calderwood tim.calderwood is online now
Registered User
Join Date: 05-20-2003
Posts: 13
Great solution to a large problem...

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...
Attached Files
File Type: bld cleanupzipfiles.bld (798 Bytes, 394 views)
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 05:20 AM.

Copyright 1999-2019 Kinook Software, Inc.