Click here to Skip to main content
16,017,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello..
I'm working with zipping and unzipping a file. I'm able to zip a file. But when i unzip, it should extract only destination file rather than complete directory... In the sense while adding files to zip file something should be done.
Code which i wrote is ...

ZipFile z = ZipFile.Create("C:/Documents and Settings/user1/Desktop/temp/OutBox/" + datamethod.CompanyName() + textfilename + ".TPT");
z.BeginUpdate();
z.Add("C:/Documents and Settings/user1/Desktop/mysql.txt");
z.CommitUpdate();
z.Close();
Posted

1 solution

I thinks i have already answered you the same question.

Issue in zipping a file[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900