看起来在C#中没有内置的Library/API来解压缩zip文件.我正在寻找一个免费的(更好的开源)库/ API,它可以与.Net 3.5 + VSTS 2008 + C#一起解压zip文件并将所有文件解压缩到一个特定的文件夹中.
任何推荐的库/ API或样品?
从ZIP文件中提取文件时,我使用以下内容.
Sub Unzip(strFile)
' This routine unzips a file. NOTE: The files are extracted to a folder '
' in the same location using the name of the file minus the extension. '
' EX. C:\Test.zip will be extracted to C:\Test '
'strFile (String) = Full path and filename of the file to be unzipped. '
Dim arrFile
arrFile = Split(strFile, ".")
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CreateFolder(arrFile(0) & "\ ")
pathToZipFile= arrFile(0) & ".zip"
extractTo= arrFile(0) & "\ "
set …Run Code Online (Sandbox Code Playgroud)