压缩文件时出现问题 [英] Issue in zipping a file

查看:101
本文介绍了压缩文件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Helloo ...
我想压缩包含多个文件的文件.我可以压缩文件,但是当我解压缩时,内部文件会显示完整的路径,而不仅仅是完整的文件.希望你能理解这个问题.
我创建zip文件所做的是

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...

推荐答案

希望
Hope this[^] will guide you to solve your problem.


或尝试这个

:酷: [
or try this

:cool:[^]


这篇关于压缩文件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆