LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

creating a ZIP file using CVI

Hello all,
 
is it possible to create ZIP files using CVI? I would like to create a debug button. When the user clicks this button some files should be zipped into one single file, which the user then sends to me for analysis.
 
Thanks,
Wim
0 Kudos
Message 1 of 5
(4,168 Views)
The files produced by pkzip.exe are compatible with Winzip and XP's built-in compressed directory feature. You would probably have to check the licensing status of pkzip (freeware?) but you should be able to build it in to an external command of the form:

    system ("pkzip name.zip file1 file2 file3");

pkzip is quite powerful and obviously you would in practice construct a string with all the required program options and file/pathnames, but I'm sure you get the gist of the idea.

JR
0 Kudos
Message 2 of 5
(4,164 Views)

Hello JR,

I suppose this would mean that pkzip should be installed on the customer's computer? Or is there any way to build it into my program?

0 Kudos
Message 3 of 5
(4,163 Views)
You may have a look at zlib (http://www.zlib.net/) to build to build the zip function into your application.
0 Kudos
Message 4 of 5
(4,147 Views)

Assuming that the licensing was not a problem, it is quite easy to incorporate other programs in your applications - just add the exe files to the distribution kit, in their own program group/directory, if you prefer. This way it is all transparant to the end user.

JR

0 Kudos
Message 5 of 5
(4,139 Views)