用命令提示符压缩文件,解压缩文件(不需要客户端安装7zip)

压缩成一个CAB包的办法: 
type list.txt (生成一个文件列表) 
makecab /f list.txt /d compressiontype=mszip /d compressionmemory=21 /d maxdisksize=1024000000 /d diskdirectorytemplate=dd* /d cabinetnametemplate=dd*.cab 
来个高压缩比的。呵 

makecab /f list.txt /d compressiontype=lzx /d compressionmemory=21 /d maxdisksize=1024000000 /d diskdirectorytemplate=dd* /d cabinetnametemplate=dd*.cab

这儿的list.txt里面是文件的列表,如果是相对路径那么要放到要压缩的文件夹中,如果是绝对路径就可以放到任何地方喽!

解压缩:

expand "c:123.cab" "c:" -f:*

参考了:http://xu020408.blog.163.com/blog/static/265489200932623437807/

原文地址:https://www.cnblogs.com/liulun/p/4393216.html