Examples

1. a-Add

  1. 添加目录, 包含subdir\前缀

    7z a archive1.zip subdir\ or 7z a archive1.zip subdir\*

     subdir/
     ├── 1-2/
     │   └── 1.txt
     ├── 1.txt
     └── 2.txt
    

    1.png

  2. 添加目录, 不包含subdir\前缀

    7z a archive2.zip .\subdir\*

     subdir/
     ├── 1-2/
     │   └── 1.txt
     ├── 1.txt
     └── 2.txt
    

    2.png

  3. 添加文件

    7z a subdir.7z new.txt

    3.png 4.png

2. x-Extract

  1. 解压到当前目录

    7z x archive2.zip

    5.png

     folder/
     └── archive2.zip
    
     ├── 1-2/
     │   └── 1.txt
     ├── 1.txt
     ├── 2.txt
     ├── new.txt
     └── archive2.zip
    
  2. 解压到指定目录下

    7z x archive2.zip -oarchive2

    6.png

     folder/
     └── archive2.zip
    
     folder/
     ├── archive2/
     │   ├── 1-2/
     │   │   └── 1.txt
     │   ├── 1.txt
     │   ├── 2.txt
     │   └── new.txt
     └── archive2.zip
    
Copyright © gendloop 2024 all right reserved,powered by Gitbook该文件修订时间: 2026-02-10 13:48:53

results matching ""

    No results matching ""