duh*_*aas 58 command-line 7-zip
我希望使用命令行 7-Zip 解压缩文件夹。
我有一个文件,比如说example.zip
,我想将文件的内容解压缩到一个名为example
.
我需要什么命令来做到这一点?
Ano*_*ous 80
7z x example.zip -oexample
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<Commands>
...
x: eXtract files with full paths
<Switches>
...
-o{Directory}: set Output directory
Run Code Online (Sandbox Code Playgroud)
编辑:
7z x *.zip -o*
extracts all *.zip archives to subfolders with names of these archives.
Run Code Online (Sandbox Code Playgroud)
奇怪的是,我不得不去完整的帮助文件中找到这个例子;它没有显示为 7z /?。
小智 17
语法是: 7z x <path to>\duane.zip -oc:\duane
这会将存档的内容提取duane.zip
到c:\duane
具有完整路径的文件夹中。
注意:交换机-o
和目标文件夹之间没有空格。如果该文件夹不存在,则会自动创建。