.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

ICharpCode in C#.net

Posted By: Narayanan     Posted Date: October 28, 2011    Points:5   Category :C#
Hi friends,
I am using ICharpcode for creating a zip file in my Project.
This is my code
String l_oZipPath;
l_oZipPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\" + "TestingZip";
ICSharpCode.SharpZipLib.Zip.FastZip z = new ICSharpCode.SharpZipLib.Zip.FastZip();
z.CreateEmptyDirectories = true;
z.CreateZip(l_oZipPath + @"\" + DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss") + ".zip", Program.SourceDirName, false, "txt");

Here,
Program.SourceDirName is a Directory Name.
Three Text file in the Directory. File1,File2,File3 .I want to zip a File3 .How can i achieve this using ICharpCode? Please Help me.

Responses
Author: Narayanan             
Posted Date: October 28, 2011     Points: 20   

Hi friends,
I got the answer.

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Ravi Ranjan Kumar             
Posted Date: October 29, 2011     Points: 20   

hey! Narayanan its very good that you got the answer but it will be better when you post your answer here. I am just pinning you because might be someone have same problem and having in search of answer. in that case your answer can help him/her. I hope you can understand what I mean to you.

Thanks
Ravi Ranjan Kumar

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Author: Narayanan             
Posted Date: October 31, 2011     Points: 20   

Hi friend,
I just call the file name in the code..
z.CreateZip(l_oZipPath + @"\" + DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss") + ".zip", Program.SourceDirName, false, "File3.txt");

Regards,
Lakshmi Narayanan.S



Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Ravi Ranjan Kumar             
Posted Date: October 31, 2011     Points: 20   

This is what I expected from you. thanks for posting it.. :)

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend