Can any one have the idea how to zip folders (including sub files and folders like winrar doing) using C#...?
0
A
답변
1
: 난 그냥 제공하는 웹 사이트 링크에서 붙여 http://dotnetzip.codeplex.com/
사용의 예, #ziplib (SharpZipLib, 이전 NZipLib)입니다 Zip, GZip, Tar 및 BZip2 라이브러리는 .NET 플랫폼 용으로 C#으로 작성되었습니다.)
2
이것은 zip 관련 작업과 파일을 처리하기위한 매우 유용한 일반 .NET 유틸리티입니다. 사이트에서 SharpZipLib (: :이 발견 빠른 구글 후
using (ZipFile zip = new ZipFile()) { // add this map file into the "images" directory in the zip archive zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images"); // add the report into a different directory in the archive zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf", "files"); zip.AddFile("ReadMe.txt"); zip.Save("MyZipFile.zip"); }
관련 문제
- 1. C에서 폴더 압축 및 압축 풀기 #
- 2. 폴더/파일 압축/압축 해제
- 3. 원격 위치의 폴더 압축
- 4. SSIS의 폴더 압축
- 5. C에서 압축 파일.
- 6. C에서 이진 배열 압축
- 7. C에서 # .tbz 압축 형식 압축 해제
- 8. Objective C에서 폴더 압축하기
- 9. C에서 폴더 경로에/또는 \\ 사용
- 10. qt를 사용하여 폴더/파일 압축 zt
- 11. 파일/폴더 구조 만들기 및 압축 풀기?
- 12. Powershell, WMI 및 압축 파일/폴더
- 13. flex에서 압축 파일 압축
- 14. 우편 번호 및 파일 및 폴더 압축 해제
- 15. IIS 6에서 정적 압축 파일 미리 압축
- 16. 일부 파일을 압축 및 삭제 한 후 폴더 내의 폴더 삭제
- 17. C에서 sitemap gz 파일을 다운로드하여 압축 해제하는 방법은 무엇입니까?
- 18. Objective-C/C의 폴더 및 해당 하위 폴더 삭제
- 19. hdiutil의 압축 비율 계산
- 20. 인 프로그램에서 압축/압축 해제
- 21. android에서 압축 파일을 압축 해제
- 22. boost :: iostreams로 압축 파일 압축
- 23. 오디오 데이터 압축/압축 해제
- 24. 누구나 zlib를 호출하여 objectivc-c에서 압축 폴더를 추출 할 수 있습니까?
- 25. iPhone - zip 이름과 같은 폴더 이름 및 폴더 받기
- 26. C# FileSystemWatcher 잠금 폴더
- 27. Mercurial 저장소 파일 압축 해제
- 28. .svn 폴더 및 파일
- 29. 압축/압축 해제 기술에 관한 문서
- 30. C# 압축 및 JavaScript 압축 해제
중복 : [Zip 폴더 (C#)] (http://stackoverflow.com/questions/905654/zip-folder-in- 기음) –