请问有人尝试使用7-zip的7za.exe将zip文件解压到其他位置吗?
7za.exe x sample.zip c:\Temp
出现错误
Cannot use absolute pathnames for this command
请问有人尝试使用7-zip的7za.exe将zip文件解压到其他位置吗?
7za.exe x sample.zip c:\Temp
出现错误
Cannot use absolute pathnames for this command
你应该可以使用(使用DOS / Windows命令行)完成此操作:
7za.exe -y x D:\somefolder\sample.zip -oc:\Temp
你少了几个开关。
对于*NIX(这是来自LINUX Mint),你可以这样做:
7z -y x ~/Downloads/sample.zip -o~/Work
其中:
-y
假设所有查询都是“是”x
提取带有完整路径的文件-o
设置输出目录<Switches>
(...)
-o{Directory}: set Output directory`
我们将把这个提升到另一个级别..
假设你正在处理需要发送给300-500位客户的多个报告,但是只需要获取某一天或几天内的文件..
7-zip也可以胜任这项任务!!
7za.exe -y x D:\somefolder\sample.zip -oc:\Temp 20150225* -r
7za.exe -y x D:\somefolder\sample.zip -oc:\Temp 20150224* -r
7za.exe -y x D:\somefolder\sample.zip -oc:\Temp 20150223* -r
因此,如果您的存档有最近30天的记录,您可以仅提取1、2或3天,而无需提取整个存档。