分页: 1 / 1

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

发表于 : 2019年03月29日 10:41
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