如何使用命令行函数或cmd从存档中添加和提取文件 [英] How to Add and extract files from an archive with command line functions or from cmd

查看:118
本文介绍了如何使用命令行函数或cmd从存档中添加和提取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请帮帮我

我有.... \ddd.zip \\\\\\\

我有b.txt

我需要将b.txt添加到文件夹2

以及如何仅提取A.txt



我很抱歉我的英语不好



谢谢

解决方案

也许这可以提供一些帮助。



7 -Zip命令行 [ ^ ] < br $> b $ b

命令行语法 [ ^ ]



提取文件

> 7za e -tzip ddd.zip 1 \\\\.Axt 





将文件添加到特定目录



  1. 在ddd.zip所在的目录中创建所需的目录结构。
  2. 示例:如果ddd.zip位于c:\ temp ,然后创建c:\ temp \\\ 



  3. 将文件复制到最后一个文件夹中。
  4. 示例:c:\ temp \1 \\\\ b.txt 



  5. 将文件添加到存档。
  6. < 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


  1. Create the wanted directory structure in the directory where ddd.zip is located.
  2. Example: If ddd.zip is located in c:\temp, then create c:\temp\1\2


  3. Copy the file into the last folder.
  4. Example: c:\temp\1\2\b.txt


  5. Add the file to the archive.
  6. >7za a -tzip ddd.zip 1\2\b.txt



这篇关于如何使用命令行函数或cmd从存档中添加和提取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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