如何在以后将文件添加到7z存档 [英] How can add file to 7z archive later

查看:189
本文介绍了如何在以后将文件添加到7z存档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好..



i昨天创建了一个7z存档。我想添加几个文件到今天,我怎么能通过7z archive命令行来做到这一点。



谢谢...



我尝试了什么:



如何将文件添加到7z存档以后

解决方案

在命令行中输入7z显示可用选项:

 C:\Program Files \7-Zip> 7z 

7-Zip [64] 15.14 :版权所有(c)1999-2015 Igor Pavlov:2015-12-31

用法:7z< command> [< switches> ...]< archive_name> [< file_names> ...]
[< @listfiles ...>]

< Commands>
a:添加文件到存档
b:Benchmark
d:从存档中删除文件
e:从存档中提取文件(不使用目录名)
h:计算文件的哈希值
i:显示有关支持格式的信息
l:列出存档内容
n:重命名存档中的文件
t:测试存档的完整性
u:更新文件以存档
x :带完整路径的eXtract文件

< Switches>
- :停止开关解析
-ai [r [ - | 0]] {@ listfile |!wildcard}:包含档案
-ax [r [ - | 0]] {@ listfile |!wildcard}:eXclude archives
-ao {a | s | t | u}:set覆盖模式
-an:disable archive_name field
-bb [0-3]:set输出日志级别
-bd:禁用进度指示器
-bs {o | e | p} {0 | 1 | 2}:设置输出/错误/进度行的输出流
-bt :show执行时间统计
-i [r [ - | 0]] {@ listfile |!wildcard}:包含文件名
-m {参数}:设置压缩方法
-mmt [N ]:设置CPU线程数
-o {目录}:设置输出目录
-p {密码}:设置密码
-r [ - | 0]:递归子目录
-sa {a | e | s}:设置存档名称模式
-scc {UTF-8 | WIN | DOS}:为控制台输入/输出设置字符集
-scs {UTF-8 | UTF -16LE | UTF-16BE | WIN | DOS | {id}}:为列表文件设置字符集
-scrc [CRC32 | CRC64 | SHA1 | SHA256 | *]:设置x,e,h命令的哈希函数
-sdel:删除文件压缩后的
-seml [。]:通过电子邮件发送存档
-sfx [{name}]:创建SFX存档
-si [{name}]:从stdin $ b读取数据$ b -slp:设置大页面模式
-slt:显示l(列表)命令的技术信息
-snh:将链接存储为链接
-snl:将符号链接存储为链接
-sni:存储NT安全信息
-sns [ - ]:存储NTFS备用流
-so:将数据写入stdout
-spd:禁用文件名的通配符匹配
-spe:消除提取命令的根文件夹重复
-spf:使用完全限定的文件路径
-ssc [ - ]:设置敏感案例模式
-ssw:压缩共享文件
-stl:从最近修改的文件设置存档时间戳
-stm {HexMask}:设置CPU线程关联掩码(十六进制数)
-stx {Type}:exclude archive type
-t {Type}:设置档案类型
-u [ - ] [p#] [q#] [r#] [x#] [y#] [z#] [!newArchiveName]:更新选项
- v {Size} [b | k | m | g]:创建卷
-w [{path}]:分配工作目录。空路径表示临时目录
-x [r [ - | 0]] {@ listfile |!wildcard}:eXclude文件名
-y:假设所有查询都是


hello..

i created a 7z archive yesterday.i want to add a few files to that, today , how can i do this by 7z archive command line.

thank you...

What I have tried:

how can add file to 7z archive later

解决方案

Just type "7z" on the command line to show the available options:

C:\Program Files\7-Zip>7z

7-Zip [64] 15.14 : Copyright (c) 1999-2015 Igor Pavlov : 2015-12-31

Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
       [<@listfiles...>]

<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 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
  -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 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
  -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


这篇关于如何在以后将文件添加到7z存档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆