Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Creating a zipped file or folder

sumitm
Beginner
236 Views

Hi,

I am trying to create a zip file from a group of files.

I do not want to use 3rd part software but native xp/vista zipfldr.dll option or any other. I am trying to avoid making a .cab file.

Is there a way to run that from inside IVF including using SYSTEMQQ or any other option

What I wish to do is

rundll32 zipfldr.dll outputfileorfolder.zip *.ext

The first two arguments is what I am looking for

Thanks for any options

Regards,

Sumit

0 Kudos
2 Replies
Steven_L_Intel1
Employee
236 Views
This MSDN Forum thread asks the same thing. Apparently, there is no way to do it quite as you're asking. The thread suggests that there is a way to call the shell's COM interface to do it, which would theoretically be possible from Fortran using the Module Wizard. If I understand the code correctly, one creates an empty ZIP file (you can do this with stream I/O in Fortran) and then asks the Shell to copy files into it.
0 Kudos
joerg_kuthe
Novice
236 Views

Hi Sumit,

in case you change your mind, search for ZLIB in this forum and you finda simple way to create a .zip file.

Joerg

0 Kudos
Reply