본문 바로가기
06.C#

압축 & 압축 풀기

by chojju 2022. 6. 7.
반응형

1. System.IO.Compression.FileSystem 참조 추가

2. 압축: ZipFile.CreateFromDirectory(directoryPath, 결과 경로 +  파일이름);

3. 압축 풀기: ZipFile.ExtractToDirectory(압축파일, 결과 폴더 경로);

반응형

댓글