中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-07 20:45
48,041 topics / 350,128 posts / today 3 new / 48,252 members
DOS批处理 & 脚本技术(批处理室) » How to batch modify RAR encrypted file names and passwords
Printable Version  1,652 / 5
Floor1 5872169 Posted 2008-03-13 17:03
高级用户 Posts 474 Credits 959
How to batch modify RAR encrypted file name passwords. I have more than 50 encrypted file name passwords. How to batch modify the encrypted file name passwords?
Floor2 cad55 Posted 2008-03-13 17:48
高级用户 Posts 329 Credits 620
Originally posted by 5872169 at 2008-3-13 05:03 PM:
How to batch modify RAR encrypted file name passwords? I have more than 50 encrypted file name passwords, how to batch modify the encrypted file name passwords?



It's quite possible there's no answer.............

It's difficult and requires proficiency in RAR.............
Floor3 lee928 Posted 2008-03-16 17:24
初级用户 Posts 14 Credits 36
It seems that only WinRAR has the function to modify the password, but you have to open them one by one, first enter the password and then use the set password function to reset a new password.

The command-line version of RAR has no function to modify the password. As a workaround, first extract the files one by one to a temporary directory, and then re-archive with a password.

Using a for statement should be able to do it easily, theory not tested!

for %%a in (*.rar) do(
rar e -pold password %%~fa d:\temp\
rar m -pnew password d:\%%a d:\temp\*.*
)
Floor4 5872169 Posted 2008-03-17 12:26
高级用户 Posts 474 Credits 959
Where is the password setting function? I can't find it.
Floor5 fastslz Posted 2008-03-17 13:35
铂金会员 Posts 2,315 Credits 5,493 From 上海
start "" winrar.exe -p
Floor6 5872169 Posted 2008-03-17 15:46
高级用户 Posts 474 Credits 959
fastslz, I don't understand the meaning of the code you wrote
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023