Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Helloo...
I wanna zip a file consisting of multiple files. I'm able to zip the file but when i unzip, the inner files are coming out with complete path rather than only files. Hope u understood the issue..
What I'v did to create the zip file is

 ZipFile z = ZipFile.Create("C:/Documents and Settings/user1/Desktop/temp/" + datamethod.CompanyName() + textfilename + ".TPT");
z.BeginUpdate();
z.Add(file path);
z.Add(file path);
z.Close();




Can u help me...
Posted

Hope this[^] will guide you to solve your problem.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Jan-11 10:57am    
Useful reference. Thanks, a 5
Kasson 11-Jan-11 22:53pm    
Thanks Sakryukov.
or try this

:cool:[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Jan-11 10:57am    
Useful reference. Thanks, a 5
krishna kishore58 12-Jan-11 1:26am    
thanks for ur reply..But my requirement is to zip the file...I'm able to unzip it with unzip s/w. The only issue is to add only the required files to zipped file not the complete path...Searched many links but ambigous...I know its few lines of code...Can u advice me...

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