如何解压缩文件? [英] How to unzip a file ?
问题描述
在VB.NET 2003中,如何以编程方式解压缩ZIP文件?
谢谢。
In VB.NET 2003如何以编程方式解压缩ZIP文件?感谢
you。
您需要第三方组件或库。
我们使用的是来自 http:// www的SharpZipLib .icsharpcode.net / OpenSource / SharpZipLib /
存在更多商业组件。我相信Xceed会做一个。
-
Rory
谢谢。>
1.我在VB.Net 2003中编程,我可以使用SharpZipLib吗?
2.我下载了NET 2.0:Compiled assembly with documentation and
安装脚本和源代码和示例。要安装它,我运行
installGAC.bat吗?
我是否需要在运行此bat文件之前创建一个名为BIN的子文件夹?
即使在创建BIN文件夹后,当我从
命令提示符运行此bat文件时,我收到错误Failur将程序集添加到缓存中:
系统找不到指定的文件。我该如何解决这个问题?
3.当我尝试在我的
VB.Net项目的参考中包含ICSharpCode.SharpZipLib.dll时,我得到了错误:无法添加对
c的引用:\ download \ zip \ICSharpCode.SharpZipLib.dll。这不是一个有效的程序集或COM组件。只能引用扩展名为'dll'和
COM组件的程序集。请确保该文件可以访问,并且它是一个有效的程序集或COM组件。
谢谢。
>
" Rory Becker" < Ro ******** @ newsgroup.nospamwrote in message
news:b0 ********************** ***@msnews.microsoft。 com ...
>在VB.NET 2003中,如何以编程方式解压缩ZIP文件?感谢
你。
你需要第三方组件或库。
我们使用SharpZipLib可从
http://www.icsharpcode.net/OpenSource/SharpZipLib获取/
存在更多商业组件。我相信Xceed会做一个。
-
Rory
谢谢。
>
1.我在VB.Net 2003中编程,我可以使用SharpZipLib吗?
是的,但你需要使用Framework V1.1版本
这两个版本都可用 http://www.icsharpcode.net/OpenSourc.../Download.aspx
但你确实需要1.0 / 1.1版本。
2.我下载了NET 2.0:带有文档的编译程序集
和
安装脚本和源代码和示例。要安装它,我运行
installGAC.bat?
我需要在运行之前创建一个名为BIN的子文件夹这个bat文件
?
即使创建了BIN文件夹,当我从
命令提示符运行这个bat文件时,我收到了错误Failur将程序集添加到缓存中:
系统找不到指定的文件。我怎样才能解决这个问题 ?
我不认为我可以在这里帮助你。我不是把它当作GAC使用,而是更喜欢使用XCopy部署并将dll与我的
exe一起放到我自己的目录中。
< blockquote class =post_quotes>
3.当我尝试在我的VB.Net项目的参考
中包含ICSharpCode.SharpZipLib.dll时,我收到一个错误:引用到
c:\ download = \\ zip \ICSharpCode.SharpZipLib.dll无法添加。这个
不是有效的程序集或COM组件。只能引用带有
扩展名''dll''和COM组件的程序集。请确保
该文件是可访问的,并且它是一个有效的程序集或COM
组件。
再次我认为这只是使用.Net 2.0版本,当你只能使用.Net 1.1程序集和代码的
代码时VS2003
我希望这有帮助
-
Rory
In VB.NET 2003 how can you programmatically unzip a ZIP file ?
Thank you.
In VB.NET 2003 how can you programmatically unzip a ZIP file ? Thankyou.
You''ll need a third party component or library.
We use SharpZipLib available from http://www.icsharpcode.net/OpenSource/SharpZipLib/
More commercial components exist. I believe Xceed do one.
--
Rory
Thank you.
1. I program in VB.Net 2003, can I use SharpZipLib ?
2. I downloaded both the NET 2.0: Compiled assembly with documentation and
install scripts and Source code and samples. To install it, do I run the
installGAC.bat ?
Do I need to create a sub-folder called BIN before I run this bat file ?
Even after creating the BIN folder, when I run this bat file from the
command prompt, I got the error "Failur adding assembly to the cache: The
system cannot find the file specified". How can I fix this ?
3. When I try to include ICSharpCode.SharpZipLib.dll in the Reference of my
VB.Net project, I got an error : "A reference to
c:\download\zip\ICSharpCode.SharpZipLib.dll could not be added. This is not
a valid assembly or COM component. Only assemblies with extension ''dll'' and
COM components can be referenced. Please make sure that the file is
accessible, and that it is a valid assembly or COM component.
Thank you.
"Rory Becker" <Ro********@newsgroup.nospamwrote in message
news:b0*************************@msnews.microsoft. com...>In VB.NET 2003 how can you programmatically unzip a ZIP file ? Thank
you.
You''ll need a third party component or library.
We use SharpZipLib available from
http://www.icsharpcode.net/OpenSource/SharpZipLib/
More commercial components exist. I believe Xceed do one.
--
Rory
Thank you.>
1. I program in VB.Net 2003, can I use SharpZipLib ?Yup but you will need to use the Framework V1.1 version
Both versions are available here http://www.icsharpcode.net/OpenSourc.../Download.aspx
but you do need the 1.0/1.1 version.
2. I downloaded both the NET 2.0: Compiled assembly with documentation
and
install scripts and Source code and samples. To install it, do I run
the
installGAC.bat ?
Do I need to create a sub-folder called BIN before I run this bat file
?
Even after creating the BIN folder, when I run this bat file from the
command prompt, I got the error "Failur adding assembly to the cache:
The
system cannot find the file specified". How can I fix this ?I don''t think I can help you here. I don''t use it it the GAC, prefering to
use XCopy deployment and just lumping the dll into my own dir alongside my
exe.
3. When I try to include ICSharpCode.SharpZipLib.dll in the Reference
of my VB.Net project, I got an error : "A reference to
c:\download\zip\ICSharpCode.SharpZipLib.dll could not be added. This
is not a valid assembly or COM component. Only assemblies with
extension ''dll'' and COM components can be referenced. Please make sure
that the file is accessible, and that it is a valid assembly or COM
component.Again I think this is down to using the .Net 2.0 version when you can only
code with .Net 1.1 assemblies and code in VS2003
I hope this helps
--
Rory
这篇关于如何解压缩文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!