使用命令行创建的7z存档与使用7z GUI创建的存档不同

时间:2016-10-04 05:00:16

标签: batch-file command-line drag-and-drop 7zip archiving

使用以下设置拖放文件和文件夹以创建7z存档:
档案:a.7z
存档格式:7z
压缩等级:Ultra
压缩方法:LZMA
字典大小:64MB
字号:64
实体块尺寸:实体

Q1:以下代码与上述设置相同吗?

:addto7z
7za a -t7z "%~dp1a.7z" -m0=lzma:d=64m -mx=9 "%1"
shift
if "%~1" == "" goto:end
goto:addto7z
:end

Q2:存档大小大于使用7-Zip GUI创建的存档大小 我该如何解决?

---------------------------    ---------------------------
Created with command lines     Created with GUI
---------------------------    ---------------------------
Size: 10 022 305               Size: 10 022 305
Packed Size: 3 541 483         Packed Size: 3 529 578
Folders: 6                     Folders: 6
Files: 49                      Files: 49
CRC: 0C621D8E                  CRC: 0C621D8E
---------------------------    ---------------------------
Path: a.7z                     Path: a.7z
Type: 7z                       Type: 7z
Physical Size: 3 542 807       Physical Size: 3 530 837
Headers Size: 1 324            Headers Size: 1 259
Method: LZMA:23 BCJ2           Method: LZMA:12m BCJ2
Solid: +                       Solid: +
Blocks: 6                      Blocks: 2
---------------------------    ---------------------------

0 个答案:

没有答案