ShowUsYour<Blog>

Irregular expressions regularly

Zip'ping files

Tonight I was using the ICSharpCode zip library to zip files for my Codewise implementation.  Basically, when users nominate to make a Relase visible to Codeshare, I create a manifest file and package it and the Release file into a Codewise package.

I ran the code which comes in the .chm file but, noticed that my .zip files wouldn't show any content when viewing them through the default Windows Zip File viewer.  I little bit of investigation led me to the FAQ site for the library which answered my question.  Basically, you cannot pass a fullpath to the ZipEntry class if you want it to be visible to Windows.  So, you just remove the path portion of the filename:

ZipEntry entry = new ZipEntry(Path.GetFileName(fullPath)); 

ICSharpCode Zip Library:  www.icsharpcode.net/OpenSource/SharpZipLib
FAQ Wiki: http://wiki.sharpdevelop.net/default.aspx/SharpZipLib.FrequentlyAskedQuestions
Posted: Feb 23 2005, 11:17 PM by digory | with 18 comment(s)
Filed under: , ,

Comments

TrackBack said:

# February 24, 2005 2:54 PM

Automatic Garage Door Opener said:

Now, I have to read all the fine print, and read all the ingredients to safeguard my own health. How many other consumers are in this position now that these companies have decided to trick the consumer by hiding the chemical in the products and in the

# March 24, 2008 9:00 PM

Dan said:

Thank You!

I was wondering why the hell windows couldnt read it but winzip / winrar could.. Champion

# May 14, 2008 9:16 PM

satheesh said:

can you let me know how to set zip file password ( i mean how to password protect the created zip file

# June 25, 2008 1:05 PM

public relations consultants said:

Pay Attention to Promoting Web Shows September 12, 2008 5: 56 PM With Internet video revenue still in an early phase, much of the budget for Web TV content goes directly into production. This is true particularly for producers who are creating on their

# November 11, 2008 1:45 AM

mahi manral said:

thanx for this great post.

# July 6, 2009 6:52 AM

krity said:

can you please tell me that how to make winzip / winrar folder password protected.

# July 27, 2009 5:26 AM

Rengenx said:

Мое ИМХО, что не стоит писать такие посты вообще. Никогда

# February 16, 2010 3:49 AM

Los Angeles &#21326;&#20154; said:

"Well it feels like this website is relatively scorching, congratulations for the proprietor! I try to go through as significantly as possible on-line when I've additional time. Unfortunatley it  is beginning to get the norm for people to spend all working day for the web instead of of in fact dwelling, what a shame. All of the exact same, carry on while using good  creating anyhow.!!!.leastwise the flocks can have option content material to feed thier dying minds. Probably its ideal off, the common individuals arn't quite sensible at any  price."

--------------------------------------------

<a href="xiangyan.info/8mg-p-119.html">&

Also welcome you!

# November 30, 2010 1:20 PM

world cup ipad app said:

Gratitude is the sign of noble souls.

-----------------------------------

# December 21, 2010 3:38 PM

best ipad application said:

-----------------------------------------------------------

"You misplaced me, buddy. I necessarily mean, I suppose I get what youre saying. I get wherever youre coming from. But you simply appear to possess forgotten that you'll find folks  available who can see this problem for what it seriously is and may well not concur with you. You seem to alienate a whole bunch of men and women who might have been followers of  your blog."

# January 4, 2011 9:40 AM

ipad reviews said:

-----------------------------------------------------------

I like to require breaks in the course of the my day and appear through some blogs to determine what people today are stating. This weblog appeared in my searches and i could not assist but clicking on it. I'm glad I did due to the fact it had been a extremely satisfying read.

# January 9, 2011 10:13 AM

cordless phone reviews said:

"That’s Too awesome, when it is available in india wish it might create a Rocking site for youngster.. hope that appear accurate."

# February 11, 2011 4:55 PM

Home Security Monitoring said:

Wonderful site. A lot of useful info here. I am sending it to some friends ans also sharing in delicious. And naturally, thanks for your effort!

<b><a href="ewhat.info/home-security-strategies

">Home Security Monitoring in tn

<a/><b/>

# April 4, 2011 9:26 PM

вентиляция said:

sait - системы вентиляции  

--------------

# July 4, 2011 5:32 AM

buy edu backlinks said:

Good write-up, I am regular visitor of one’s site, maintain up the nice operate, and It is going to be a regular visitor for a long time.  <a href=edubacklinksstore.com/>get edu backlinks</a>

# July 21, 2011 5:09 AM

India Tours said:

This is really good post.

# September 16, 2011 4:10 AM

tuttoksdiassy said:

Know the craft, but they learn to forget and .

# November 21, 2011 10:18 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)