473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to compress files to zip via Macro VS 2005?

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

thanks, Rob.
Jan 4 '06 #1
5 2529
Look at the classes in the System.IO. Compression namespace. These can
be used in a macro.

Jan 4 '06 #2
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.

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Look at the classes in the System.IO. Compression namespace. These can
be used in a macro.

Jan 4 '06 #3
Rob R. Ainscough <ro*****@pacbell.net> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 4 '06 #4
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

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Rob R. Ainscough <ro*****@pacbell.net> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Jan 4 '06 #5
Rob R. Ainscough <ro*****@pacbell.net> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 5 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tony | last post by:
Hello, Any assistance would be appreciated: As the subject suggests I am trying to gunzip files using the Compress::Zlib module. The following is basically the code that I am working with: ...
1
by: Marc Jennings | last post by:
Hi there, I have a problem in that I need to de-compress a file that was compressed using the UNIX compress command. The resulting filename is helloworld.xml.Z I have looked at SharpZipLib,...
5
by: ad | last post by:
I used use SharpZipLib to compress files in disk. But now I want to compress stream into another stream in memory(the stream not associated with disk file) My pseudo is: Stream...
2
by: ad | last post by:
I want to compress two fies in server (c:\data\mine.mdf, mine_log.ldf) into a files and copy the a specific folder in client. How can I do that?
10
by: Fredrik Melin | last post by:
I need suggestions on tools to compress dot net EXE's (its ridiculos how large they are..) I have a licenced copy of thinstall, but its old and have some bugs in it, unfortunally they seems to...
3
by: dust | last post by:
I need to improve the download speed for an asp.net 2.0 application. So I'd like to compress the dimension of the .aspx pages. These pages don't have any images or heavy element. The most long...
2
by: dotnetnoob | last post by:
i'm making a function to compress a directory and all the subfolders/files under it for backup purpose. i can make a copy of directory without any problem but how do i compress the copyed...
6
by: Champika Nirosh | last post by:
Hi, I have two machine where I needed to have a extended TCP/IP protocol to make the link between the two machines Mean,I need to write a application that compress every data the machine send...
1
by: =?Utf-8?B?U2NobWVuZ3k2OQ==?= | last post by:
Hopefully someone can help with this query. I have searched the internet and no other occurence of this problem seems to appear so I must be unique in some way... OS : XP Media Center I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.