Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-31-2005, 02: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.

Thanks
Reply With Quote
  #2  
Old 11-01-2005, 11:50 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Reply With Quote
  #3  
Old 11-01-2005, 01: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, 1392 views)
Reply With Quote
Reply


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 08:25 AM.


Copyright © 1999-2023 Kinook Software, Inc.