2017-06-14 103 views
1

我使用Autohotkey製作腳本。我的一個熱鍵將檢查所有選定的拉鍊或拉爾斯,並應檢測其中哪些受密碼保護,以隔離或重命名它們。有沒有與Winrar的命令行或任何其他工具可以告訴我這個?謝謝。識別帶密碼的rars或拉鍊

+0

也許你應該在superuser.com上問這個問題以獲得更勝任的答案:-) – flob

回答

1
D:>unrar vt test.rar 

UNRAR 5.30 freeware  Copyright (c) 1993-2015 Alexander Roshal 

Archive: test.rar 
Details: RAR 4 

     Name: test.txt 
     Type: File 
     Size: 5712 
Packed size: 1168 
     Ratio: 20% 
     mtime: 2017-06-16 21:37:23,257 
    Attributes: ..A.... 
     CRC32: 499EFFFA 
    Host OS: Windows 
Compression: RAR 3.0(v29) -m3 -md=128K 
     Flags: encrypted 

但是,如果文件名也加密,它會等待密碼:

D:\>unrar vt test.rar 

UNRAR 5.30 freeware  Copyright (c) 1993-2015 Alexander Roshal 

Enter password (will not be echoed) for test.rar: 
Program aborted 

使用此命令禁止密碼提示:

D:\>unrar vt -p- test.rar 

UNRAR 5.30 freeware  Copyright (c) 1993-2015 Alexander Roshal 

Checksum error in the encrypted file test.rar. Corrupt file or wrong password. 
Archive: test.rar 
Details: RAR 4, encrypted headers 

同樣的技術適用於其他檔案。查找用於提取它們的基本CLI工具,並列出可用參數以找出哪些用於顯示特定歸檔信息。