如何使用命令行函数或cmd从存档中添加和提取文件 [英] How to Add and extract files from an archive with command line functions or from cmd
本文介绍了如何使用命令行函数或cmd从存档中添加和提取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
请帮帮我
我有.... \ddd.zip \\\\\\\
我有b.txt
我需要将b.txt添加到文件夹2
以及如何仅提取A.txt
我很抱歉我的英语不好
谢谢
解决方案
也许这可以提供一些帮助。
7 -Zip命令行 [ ^ ] < br $> b $ b
命令行语法 [ ^ ]
提取文件
> 7za e -tzip ddd.zip 1 \\\\.Axt
将文件添加到特定目录
- 在ddd.zip所在的目录中创建所需的目录结构。
示例:如果ddd.zip位于c:\ temp ,然后创建c:\ temp \\\
- 将文件复制到最后一个文件夹中。
示例:c:\ temp \1 \\\\ b.txt
- 将文件添加到存档。
< pre lang =text>> 7za a -tzip ddd.zip 1 \\\\b.txt
Hi
please help me
I have ....\ddd.zip\1\2\A.txt
and I have b.txt
I need add b.txt to the folder 2
and how do to Extract A.txt only
I'm sorry for my bad English
thank you
解决方案
Maybe this can be of some help.
7-Zip Command-Line[^]
Command Line Syntax[^]
Extract the file
>7za e -tzip ddd.zip 1\2\A.txt
Add a file to a specific directory
- Create the wanted directory structure in the directory where ddd.zip is located.
Example: If ddd.zip is located in c:\temp, then create c:\temp\1\2
- Copy the file into the last folder.
Example: c:\temp\1\2\b.txt
- Add the file to the archive.
>7za a -tzip ddd.zip 1\2\b.txt
这篇关于如何使用命令行函数或cmd从存档中添加和提取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文