cmd 7z 文件压缩

7z压缩测试
为了方便,将7z的安装目录,添加到环境变量中
image

# 不加环境变量的话,需要带上全路径
C:\Users\vipsoft>"C:\\Program Files\\7-Zip\\7z" a -tzip a.zip D:\workspace\admin\dist\*

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive:
509 folders, 1647 files, 30945075 bytes (30 MiB)

Creating archive: a.zip

Add new data to archive: 509 folders, 1647 files, 30945075 bytes (30 MiB)


Files read from disk: 1647
Archive size: 12167335 bytes (12 MiB)
Everything is Ok

C:\Users\vipsoft>
posted @ 2022-11-18 15:14  VipSoft  阅读(360)  评论(0编辑  收藏  举报