压缩档案与平面结构使用Winrar
本文关键字:Winrar 结构 平面 档案 压缩 | 更新日期: 2023-09-27 18:03:37
我有一堆档案在不同的文件夹里,我想把所有的文件压缩成。zip:
我在尝试什么:
(path)'WinRAR.exe a -afzip "(path)File.zip" "(path)ToCompress"
错误:
Zip包含所有文件夹(path)
而不仅仅是文件ToCompress
编辑:
类似于DotNetZip
参数:
-flat - store the files in a flat dir structure; do not use the
directory paths from the source files.
尝试添加-ep
来自Rar.exe帮助:
ep Exclude paths from names
ep1 Exclude base directory from names
ep2 Expand paths to full
ep3 Expand paths to full including the drive letter