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)
-   -   Zip Function for adding sub directories (https://www.kinook.com/Forum/showthread.php?t=521)

tim.calderwood 07-27-2004 01:36 PM

Zip Function for adding sub directories
 
I am using the built in Zip function and have the following directory structure.

C:\
CodeDir\
ProgramA\
ProgramB\
ProgramC\

I want to zip up sub folders ProgramA and ProgramC but want to exclude ProgramB. I have set the source folder to C:\CodeDir. I then tried excluding ProgramB\*.* but this zip everything including ProgramB. Therefore, I then tried including just ProgramA and ProgramC but this did not zip anything. The option is set for including sub folders.My questions is how can I just zip ProgramA and ProgramC without including ProgramB?

As a side question, what is the benefit of “Append to existing file (don’t use temporary file)”? I can not find anything in the help about this option.

Thanks ahead of time...

kinook 07-27-2004 04:40 PM

I'm not sure, a similar test here works as expected:


2
5
-1
%TEMP%\test.zip
User Actions\*.*
-1
-1
-1
%VISBUILDDIR%\Samples
1
zip


You can copy and paste the text above into VisBuildPro. On my box, it excludes the files in the Samples\User Actions folder but includes all the other ones; if the exclude field is cleared, the files in that folder are included in the ZIP file.

The 'append to existing file' option does basically what it says, modifying the existing ZIP file rather than creating a temporary file and replacing the original with it when performing an update. It might be beneficial when working with really large ZIP files or when disk space is low.

tim.calderwood 07-27-2004 04:48 PM

Thanks for the quick reply. The problem comes from the "Save full path info". If you check this check box, then the includes and excludes are ignored. If you uncheck this box, then it works as described. Is this how it is supposed to work?

kinook 07-27-2004 05:02 PM

Ah. Then you will need to specify the full path in the exclude field (%VISBUILDDIR%\Samples\User Actions\*.* in my sample).

kinook 02-22-2012 01:33 PM

This is supported in the Enhanced ZIP Files action in v8.0.


All times are GMT -5. The time now is 03:43 AM.


Copyright © 1999-2023 Kinook Software, Inc.