Winrar command line to decompress compressed files with password

1. Install winrar first, needless to say

2. We create a compressed file

 

This is a folder with 2 txt files inside

3. We use winrar to encrypt and compress it

 Now we have a compressed file with password

3. Find the installation directory of winrar, copy rar.exe to the current folder

After copying over

 

 

4. Enter cmd in the above path bar and press Enter to open the command line

command line window

 Window input decompression command

rar.exe -y x -pbingling "冰凌大帅哥" *

 decompression result

5. Decompression command description

rar.exe -y x -pbingling "冰凌大帅哥" *


// rar.exe 运行此程序
// -y 安静模式下运行程序,跳过繁琐的确认环节,默认全部为是
// x 解压模式
// -p -p后面必须直接紧跟密码,否则会认为你没有输入密码
// "冰凌大帅哥" 需要解压的压缩包名称,名称加上双引号比较好,这样你的名称可以带有空格
// * 解压压缩包中的所有文件和文件夹

 

 

Guess you like

Origin blog.csdn.net/qq_36694133/article/details/128846620