7zip command line syntax & example

황제낙엽 2020.08.10 17:49 조회 수 : 1571

sitelink1  
sitelink2  
sitelink3  
extra_vars4  
extra_vars5  
extra_vars6  

- syntax : 7z <command> [<switch>...] <base_archive_name> [<arguments>...]

- example
  > 압축시 : "%PATH_7ZIP_EXE%" a "%BACKUP_FILE%" "%PATH_BACKUP%\*.*"
  > 해제시 : "%PATH_7ZIP_EXE%" x "%COMPRESSED_FILE%" "-o%PATH_EXTRACT%\" "-aoa" (끝에 aoa 옵션은 기존 파일이 있어도 묻지않고 덮어씌우겠다는 옵션)
 
 
 
 
 
<help>
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
 
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...] [@listfile]
 
<Commands>
  a : Add files to archive
  b : Benchmark
  d : Delete files from archive
  e : Extract files from archive (without using directory names)
  h : Calculate hash values for files
  i : Show information about supported formats
  l : List contents of archive
  rn : Rename files in archive
  t : Test integrity of archive
  u : Update files to archive
  x : eXtract files with full paths
 
<Switches>
  -- : Stop switches and @listfile parsing
  -ai[r[-|0]]{@listfile|!wildcard} : Include archives
  -ax[r[-|0]]{@listfile|!wildcard} : eXclude archives
  -ao{a|s|t|u} : set Overwrite mode
  -an : disable archive_name field
  -bb[0-3] : set output log level
  -bd : disable progress indicator
  -bs{o|e|p}{0|1|2} : set output stream for output/error/progress line
  -bt : show execution time statistics
  -i[r[-|0]]{@listfile|!wildcard} : Include filenames
  -m{Parameters} : set compression Method
    -mmt[N] : set number of CPU threads
    -mx[N] : set compression level: -mx1 (fastest) ... -mx9 (ultra)
  -o{Directory} : set Output directory
  -p{Password} : set Password
  -r[-|0] : Recurse subdirectories
  -sa{a|e|s} : set Archive name mode
  -scc{UTF-8|WIN|DOS} : set charset for console input/output
  -scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}} : set charset for list files
  -scrc[CRC32|CRC64|SHA1|SHA256|*] : set hash function for x, e, h commands
  -sdel : delete files after compression
  -seml[.] : send archive by email
  -sfx[{name}] : Create SFX archive
  -si[{name}] : read data from stdin
  -slp : set Large Pages mode
  -slt : show technical information for l (List) command
  -snh : store hard links as links
  -snl : store symbolic links as links
  -sni : store NT security information
  -sns[-] : store NTFS alternate streams
  -so : write data to stdout
  -spd : disable wildcard matching for file names
  -spe : eliminate duplication of root folder for extract command
  -spf : use fully qualified file paths
  -ssc[-] : set sensitive case mode
  -sse : stop archive creating, if it can't open some input file
  -ssw : compress shared files
  -stl : set archive timestamp from the most recently modified file
  -stm{HexMask} : set CPU thread affinity mask (hexadecimal number)
  -stx{Type} : exclude archive type
  -t{Type} : Set type of archive
  -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options
  -v{Size}[b|k|m|g] : Create volumes
  -w[{path}] : assign Work directory. Empty path means a temporary directory
  -x[r[-|0]]{@listfile|!wildcard} : eXclude filenames
  -y : assume Yes on all queries
 
 
번호 제목 글쓴이 날짜 조회 수
31 [Filezilla] 파일질라 FTP 서버(FileZilla FTP server) 구축 순서 황제낙엽 2023.07.26 4
30 윈도우 메일 서버 만들기 HMail Server 4.4.1 황제낙엽 2023.06.23 1
29 Accessibility Insights 황제낙엽 2021.11.09 8
28 mRemoteNG (원격 데스크톱 연결 프로그램) 황제낙엽 2021.08.20 36
27 Process Explorer (procexp.exe) file 황제낙엽 2021.06.10 10
26 [웹접근성] Web Accessibility 관련 참고 블로그 황제낙엽 2021.01.14 239
25 Dropbox 프로세스 pause & resume (프로세스 일시정지와 활성 유틸리티, pssuspend) file 황제낙엽 2020.11.02 21
» 7zip command line syntax & example 황제낙엽 2020.08.10 1571
23 Dropbox 강제 재시작 도스 쉘 스크립트 황제낙엽 2019.12.31 50
22 아웃룩 첨부파일(exe,bat,js) 다운로드 설정법 file 황제낙엽 2019.11.23 329
21 [Filezilla] 파일질라 서버(FileZilla Server) Settings 예제 secret 황제낙엽 2019.09.16 0
20 [웹접근성] 센스리더 다운로드 자료실 황제낙엽 2019.09.05 153
19 WinSCP - windows 에서 스크립트로 ftp 파일 전송이 가능한 프로그램 file 황제낙엽 2019.07.30 661
18 HTML/XML 코드 자동 정렬! XML Tools (Notepad++ 플러그인) file 황제낙엽 2018.05.16 768
17 Notepad2 과 유용한 플러그인 목록 file 황제낙엽 2018.03.29 172
16 [접근성] 센스리더 단축키 황제낙엽 2018.01.05 964
15 [Filezilla] 알약 방화벽 설정 방법 file 황제낙엽 2017.04.05 3098
14 [Filezilla] 425 Can't open data connection. file 황제낙엽 2017.04.05 6131
13 문서 관리용 시스템 조사 file 황제낙엽 2017.02.21 142
12 [Filezilla] Filezilla Server IP Filter 방법(How to Deny all IPs except one in Filezilla Server?) file 황제낙엽 2016.01.01 1100