3
A
답변
16
이 CodeProject 기사에서 살펴 경우 당신을 도움이 될 것입니다. 특정 문제가있는 경우 질문에 코드 및 문제 설명을 넣어야합니다.
:Sub UnZip()
Dim sc As New Shell32.Shell()
'Create directory in which you will unzip your files .
IO.Directory.CreateDirectory("D:\extractedFiles")
'Declare the folder where the files will be extracted
Dim output As Shell32.Folder = sc.NameSpace("D:\extractedFiles")
'Declare your input zip file as folder .
Dim input As Shell32.Folder = sc.NameSpace("d:\myzip.zip")
'Extract the files from the zip file using the CopyHere command .
output.CopyHere(input.Items, 4)
End Sub
링크
아니면 닷넷 4.5을 사용하는 경우이 링크에서 ZipFile Class
예를 사용할 수있는 방법 Folder.CopyHere
에 대한 : 위의 문서에서
Imports System.IO
Imports System.IO.Compression
Module Module1
Sub Main()
Dim startPath As String = "c:\example\start"
Dim zipPath As String = "c:\example\result.zip"
Dim extractPath As String = "c:\example\extract"
ZipFile.CreateFromDirectory(startPath, zipPath)
ZipFile.ExtractToDirectory(zipPath, extractPath)
End Sub
End Module
6
나는 당신이 http://dotnetzip.codeplex.com/를 다운로드 한 다음이 (문서에서 가져온 예)처럼 사용하는 것이 좋습니다 것입니다.
Dim ZipToUnpack As String = "C1P3SML.zip"
Dim TargetDir As String = "C1P3SML"
Console.WriteLine("Extracting file {0} to {1}", ZipToUnpack, TargetDir)
Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)
Dim e As ZipEntry
For Each e In zip1
e.Extract(TargetDir, ExtractExistingFileAction.OverwriteSilently)
Next
End Using
관련 문제
- 1. 블랙 베리의 압축 해제/압축 해제 파일
- 2. 플렉스 압축 해제/압축 해제 대용량 파일
- 3. 폴더/파일 압축/압축 해제
- 4. yii의 파일 압축/압축 해제
- 5. "wmz"파일 압축 해제
- 6. 장치의 파일 압축 해제
- 7. 파일 내용 압축 해제
- 8. CCNet 파일 압축 해제
- 9. 에어 - 파일 압축 해제
- 10. 파일 압축 해제 - 경로
- 11. 파일 압축 해제?
- 12. ZIpFile로 파일 압축 해제
- 13. 파일 자동 압축 해제
- 14. Magick ++ 파일 압축 및 압축 해제
- 15. Mercurial 저장소 파일 압축 해제
- 16. 새 폴더에 파일 압축 해제
- 17. 안드로이드에서 Rar 파일 압축 해제
- 18. Android .xml.gz 파일 압축 해제
- 19. 메모리 스트림에서 파일 압축 해제
- 20. Sharepoint 데이터베이스에서 파일 압축 해제
- 21. 인 프로그램에서 압축/압축 해제
- 22. android에서 압축 파일을 압축 해제
- 23. DeflateStream를 압축/압축 해제 inconsitency
- 24. Asmx Webservice 압축/압축 해제?
- 25. 오디오 데이터 압축/압축 해제
- 26. RAR 압축 해제 알고리즘
- 27. HTML 코드 압축 해제
- 28. 파일 아카이브의 분산 된 압축 해제
- 29. Amazon S3에서 압축 해제 ZIP 파일
- 30. 폴더가 들어있는 Gzip 파일 압축 해제 C#
와우, 고마워요. – kelvz
@kelvz 다음에 답을 고르지 만 다른 좋은 질문이 있습니다. 적어도 +1하십시오. – Anonymous