Creating a zip file by combining two existing files programm

Posted by ithrees.ai on 21-Nov-2013 04:32

Hi,

I have a situation to create a zip file using two physically stored text files in my system.
Still I'm looking for a way to do it... your valuable suggestions will help me a lot.

Thanks

All Replies

Posted by Lieven De Foor on 21-Nov-2013 05:32

You could do an OS-COMMAND to run a zip executable (windows/unix)

You could use an external dll (windows) or .so (unix)

You could use an ocx (windows)

You could use a .net class (eg System.IO.Compression.ZipFile for .net framework 4.5, or http://dotnetzip.codeplex.com/) (windows)

Regards,

Lieven

Posted by Jean Richert on 21-Nov-2013 14:38

Great suggestions Lieven...

Posted by ithrees.ai on 26-Nov-2013 23:42

Thank you for your replay Lieven,

Can you please provide me few examples on available dll s for this purpose.. ?

It would be more helpful to me if you can give a description to use the mentioned dotnetzip library

Posted by Lieven De Foor on 27-Nov-2013 01:45

If your using a .net assembly (.dll) you first have to add it to your assemblies (PDSOE > Project > Properties > Progress OpenEdge > Assemblies).

Then in a .p or .cls you can create objects of the type (eg. System.IO.Compression.ZipFile) and execute its methods (see the documentation msdn.microsoft.com/.../system.io.compression.zipfile(v=vs.110).aspx)

Posted by Lieven Cardoen on 27-Nov-2013 01:52

@ithrees.ai : Here are some examples too --> www.google.com

This thread is closed