获取驻留在zip文件中的文件的路径 [英] get the path of a file which resides in a zip file

查看:75
本文介绍了获取驻留在zip文件中的文件的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想获取位于zip文件中的Doc文件的路径

没有使用下面的代码.当使用它时,它显示对路径``C:\ Inetpub \ wwwroot \ ----''的访问被拒绝.我授予了对该文件夹的所有权限,但它显示了相同的错误

Hi all,

I would like to get the Doc file''s path which resides in a zip file

with out using the following code.when it using it shows Access to the path ''C:\Inetpub\wwwroot\----'' is denied.I gave all permission to this folder but it''s showing the same error

using (FileStream streamWriter = File.Create(Path))
{
streamWriter.Close();



我只需要获取包含文件名的文件路径
请帮助

谢谢&问候,
soumya



I need only get the filepath which includes the filename
Pls help

Thanks & regards,
soumya

推荐答案

尝试一下
上传Zip文件


选中本文中的解压缩方法.
可能会对您有帮助!
谢谢
@ChetanV @
Try This
Uploading Zip File


Check Unzip Method in this Article.
May be This Will help You!
Thank You
@ChetanV@




您有几种读取zip文件的方法.这取决于您使用的 ZIP库.查看此链接 [ ^ ].
Hi,

You have several ways to read zip file. It depends what ZIP library you use. Check out this link[^].


System.IO.Packaging可能对您有帮助,

请参阅下面的链接
http://msdn.microsoft.com/en-us/library/system.io. Packaging.aspx [^ ]

谢谢
--RA
System.IO.Packaging may helps you,

see the below link
http://msdn.microsoft.com/en-us/library/system.io.packaging.aspx[^]

Thanks
--RA


这篇关于获取驻留在zip文件中的文件的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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