7z 判断压缩文件是否设置密码

系统管理自动化、图像处理(ImageMagick, WebP, nConvert)、文档转换(pandoc)、网络(wget, curl)
回复
头像
paktc
出类拔萃
出类拔萃
帖子: 65
注册时间: 2016年07月21日 20:34
联系:

7z 判断压缩文件是否设置密码

帖子 paktc »

在 7-Zip 自带的帮助文件中可以查到方法
Command Line Version -> Commands -> l(List) -> -slt


-slt (Show technical information) switch

Example

代码: 全选

7z l -slt archive.7z
shows detailed technical information for the files in archive.7z.
7-Zip [64] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04 Scanning the drive for archives: 1 file, 262 bytes (1 KiB) Listing archive: resources.zip -- Path = resources.zip Type = zip Physical Size = 262 ---------- Path = resources.txt Folder = - Size = 95 Packed Size = 102 Modified = 2019-03-28 21:32:01 Created = 2019-03-28 21:29:28 Accessed = 2019-03-28 21:29:28 Attributes = A Encrypted = + Comment = CRC = 76116630 Method = ZipCrypto Deflate Host OS = FAT Version = 20 Volume Index = 0
回复

在线用户

正浏览此版面之用户: 没有注册用户 和 0 访客