如何将几个* .zip存档文件解压缩到单独的文件夹中? [英] How to unzip several *.zip archive files into separate folders?

查看:367
本文介绍了如何将几个* .zip存档文件解压缩到单独的文件夹中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google上进行了搜索,但找不到适用于Windows的内容.

I searched with Google but I didn't find something for Windows.

如何将多个文件提取到多个文件夹中?

How can I extract several files into several folders?

例如:将a.zipb.zipc.zip放入文件夹abc.

For example: a.zip, b.zip and c.zip into the folders a, b and c.

我正在寻找命令提示符命令或批处理文件解决方案.

I am looking for a command prompt command or a batch file solution.

谢谢

推荐答案

在GUI模式下使用 WinRAR :

  1. 启动 WinRAR .
  2. 选择所有* .zip文件.
  3. 点击工具栏中的图标提取至.
  4. 输入目标文件夹或浏览到目标文件夹.
  5. 选中"其他"组中的选项"将归档文件提取到子文件夹".
  6. 单击按钮确定.
  1. Start WinRAR.
  2. Select all the *.zip files.
  3. Click on icon Extract To in toolbar.
  4. Enter destination folder or browse to destination folder.
  5. Check the option Extract archives to subfolders in group Miscellaneous.
  6. Click on button OK.

如果您想进一步了解这些提取选项,请在按钮帮助之前单击.

In case of you want to know more about those extracting options, click before on button Help.

或者在命令行中使用包含* .zip文件和所有归档文件的当前目录,这些文件也应提取到当前目录的子文件夹中,并以ZIP文件名作为文件夹名:

Or use from command line with current directory containing the *.zip files and all archive files which should be also extracted into subfolders of current directory with name of ZIP file as folder name:

"%ProgramFiles%\WinRAR\WinRAR.exe" x -ad -cfg- -ibck *.zip

如何构建这样的 WinRAR 命令行?

How to build such a WinRAR command line?

  1. 启动 WinRAR .
  2. 帮助主题上单击菜单帮助.
  3. 单击列表项命令行模式中的选项卡内容.
  4. 单击列表项命令行语法,阅读此帮助页面,然后将粗体行复制到文本编辑器或命令提示符窗口中.
  5. 单击列表项命令中的选项卡内容.
  6. 单击列表项字母命令列表,并在文本编辑器或命令提示符窗口中将<command>替换为最适合该任务的命令字母.
  7. 点击列表项 Switchs 中的 Contents 标签.
  8. 单击列表项字母开关列表,然后用对任务有用的那些开关替换文本编辑器或命令提示符窗口中的-<switch1> -<switchN>.
  9. 用适当的文件和/或文件夹名称替换文本编辑器或命令提示符窗口中的 WinRAR 命令行的其余部分.
  1. Start WinRAR.
  2. Click in menu Help on Help topics.
  3. Click on tab Contents on list item Command line mode.
  4. Click on list item Command line syntax, read this help page and copy the bold line into a text editor or into a command prompt window.
  5. Click on tab Contents on list item Commands.
  6. Click on list item Alphabetic commands list and replace <command> in text editor or command prompt window by most suitable command letter for the task.
  7. Click on tab Contents on list item Switches.
  8. Click on list item Alphabetic switches list and replace -<switch1> -<switchN> in text editor or command prompt window by those switches which are useful for the task.
  9. Replace the rest of the WinRAR command line in text editor or command prompt window by the appropriate file and/or folder names.

此任务中最重要的开关-ad的简短说明是:

The short explanation of the most important switch -ad for this task is:

-ad    将档案名称附加到目标路径

-ad     append archive name to destination path

从这里可以看出, WinRAR 甚至支持使用通配符模式作为存档文件名,以提取与该模式匹配的所有存档文件.

As it can be seen here, WinRAR supports even a wildcard pattern as archive file name for extracting all archives files matching the pattern.

存在另外一种方法,默认情况下在安装 WinRAR 后启用外壳集成.

One more method exists with shell integration enabled as by default after installation of WinRAR.

  1. 选择要在文件管理器(Windows Explorer)中提取的存档文件.
  2. 在选定的文件之一上单击鼠标中键(右键)以打开上下文菜单.
  3. 打开上下文子菜单 WinRAR ,如果由于启用了 WinRAR -选项-设置中的级联上下文菜单而存在此类子菜单-集成.
  4. 单击上下文菜单项将每个存档提取到单独的文件夹.
  1. Select the archive files to extract in file manager (Windows Explorer).
  2. Click with secondary (right) mouse button on one of the selected files to open the context menu.
  3. Open context submenu WinRAR if there is such a submenu because of enabled setting Cascaded context menus in WinRAR - Options - Settings - Integration.
  4. Click on context menu item Extract each archive to separate folder.

这篇关于如何将几个* .zip存档文件解压缩到单独的文件夹中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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