1.打开7z官网 https://sparanoid.com/lab/7z/
2.下载安装包
3.安装
4.打开安装目录:C:\Program Files\7-Zip
5.复制文件:7z.exe和7z.dll两个文件;
6.粘贴到C:\Windows\System32
命令:
生成 .7z
7z a desc src1 src2 src*
压缩文件 并以当前时间命名
set "name=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%"
7z a desc%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%%time:~0,2%%time:~3,2% src1 src2 src*
生成 .zip
7z a -tzip desc src1
解压
7z x desc.7z -odirName\