일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- windows
- commit
- ListView
- nullable
- string
- programmers
- logging
- Microsoft
- algorithm
- Process
- IValueConverter
- convert
- git
- csharp
- File
- chashtag
- dotNET
- .net
- log
- Github
- Visual Studio
- Binding
- Coding
- C#
- tls
- 코딩테스트
- mysql
- WPF
- windows10
- coding-test
- Today
- Total
목록unzip (2)
CHashtag

안녕하세요. 오늘은 https://chashtag.tistory.com/24 에 이어 비밀번호와 함께 압축, 압축을 푸는 방법에 대해 알아보도록 하겠습니다. [C#] 압축, 압축 풀기 (zip, unzip) 오늘은 폴더를 zip 파일로, zip 파일을 폴더로 만드는 방법에 대해 알아보겠습니다. 아래 코드를 구현하기 위해선 System.IO.Compression.FileSystem을 Reference에 추가하여야 합니다. static void Main(string[.. chashtag.tistory.com 위 링크에서는 System.IO.Compression 의 ZipFile Class를 사용했었는데요, 하지만 이 Class에서는 비밀번호를 이용해 zip, unzip 기능을 제공하지 않습니다. (참고링크:..

오늘은 폴더를 zip 파일로, zip 파일을 폴더로 만드는 방법에 대해 알아보겠습니다. 아래 코드를 구현하기 위해선 System.IO.Compression.FileSystem을 Reference에 추가하여야 합니다. static void Main(string[] args) { string directoryPath = @"D:\Record"; string zipPath = @"D:\Record.zip"; string unzipPath = @"D:\UnzipRecord"; bool zipResult = ZipDirectory(directoryPath, zipPath); bool unzipResult = UnzipFile(zipPath, unzipPath); } public static bool ZipDire..