How to compress files to zip via Macro VS 2005?

  • Thread starter Thread starter Rob R. Ainscough
  • Start date Start date
R

Rob R. Ainscough

Is there anyway I can use WinXP OS send to compressed file (aka zip) via a
VS 2005 macro?

thanks, Rob.
 
Look at the classes in the System.IO. Compression namespace. These can
be used in a macro.
 
Chris,

Thank you, but it only seems to support single file compression -- is there
a way to compress three files into a single zip using System.IO.Compression?

thanks, Rob.
 
Rob R. Ainscough said:
Thank you, but it only seems to support single file compression -- is there
a way to compress three files into a single zip using System.IO.Compression?

No - you need to use something like SharpZipLib for that, I believe.
 
I have SharpZipLib but it relies on .NET 1.1 -- I'm working with .NET 2.0 in
VS 2005.

I've located the OS DLL that I think does this zipfldr.dll
 
Rob R. Ainscough said:
I have SharpZipLib but it relies on .NET 1.1 -- I'm working with .NET 2.0 in
VS 2005.

Are you really saying you can't use SharpZipLib with .NET 2.0? That
sounds really unlikely. If nothing else, you could recompile it
yourself under 2.0, as the source is available.
I've located the OS DLL that I think does this zipfldr.dll

Hmmm - personally I'd rather use a managed library, but it's up to you
of course.
 
Back
Top