|
zhaoxianqunks
初级用户
 
积分 28
发帖 12
注册 2007-3-8
状态 离线
|
『楼 主』:
如何批量解压相同密码的RAR文件?
使用 LLM 解释/回答一下
─────────────────── 版务记录 ────────────────────
执行:namejm
原标题:求一个批处理命令
说明:因标题表述过于模糊,不便于论坛的搜索和管理,请在三日内修改标题。
提示:修改标题请在当前帖的右下脚点 编辑, 修改完毕之后按 编辑帖子 即可。
处罚:因属论坛新人,暂时不予处罚;若三日之后尚未修改标题,将扣除2点积分,
以示惩罚,并由版主强制修改标题。请点击这里阅读论坛发帖规定,以避免在
今后的讨论中违规发帖。
─────────────────── 版务记录 ────────────────────
我需要把一个文件夹下的(比方说d:\txe目录,目录下有几千个压缩文件)所有压缩文件全部解压到指定的目录(比方说e:\temp\01),(需要解压文件夹所有压缩文件都带有密码,密码都是一样的)这个应该怎么写?
Last edited by zhaoxianqunks on 2007-3-10 at 12:07 AM ]
─────────────────── Moderation Record ────────────────────
Performed by: namejm
Original Title: Request for a batch command
Description: The title is too vague, which is not convenient for forum search and management. Please modify the title within three days.
Prompt: To modify the title, click Edit at the bottom right of the current post, and then click Edit Post after modification.
Punishment: Since it is a new forum user, no punishment is temporarily given; if the title is not modified after three days, 2 points will be deducted as a punishment, and the moderator will forcibly modify the title. Please click here to read the forum posting regulations to avoid violating posting regulations in future discussions.
─────────────────── Moderation Record ────────────────────
I need to extract all compressed files in a folder (for example, the d:\txe directory, which has thousands of compressed files in the directory) to a specified directory (for example, e:\temp\01). (All compressed files in the folder need to be password-protected, and the passwords are all the same.) How should this be written?
Last edited by zhaoxianqunks on 2007-3-10 at 12:07 AM ]
|
|
2007-3-8 14:29 |
|
|
zhoushijay
高级用户
    Autowalk
积分 845
发帖 375
注册 2007-3-3
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
echo off
cd /d "C:\Program Files\WinRAR" & winrar e e:\11\*.rar e:\22
rar 命令中只有添加时设置密码的开关,没有解压时填入密码的开关,需要自己收动输入
以上代码只是在RAR没有密码的时候解压
echo off
cd /d "C:\Program Files\WinRAR" & winrar e e:\11\*.rar e:\22
The -p switch is only available for setting a password when adding files to a RAR archive, not for entering a password when extracting. You need to input it manually.
The above code only extracts when the RAR has no password
|
|
2007-3-8 14:45 |
|
|
zhaoxianqunks
初级用户
 
积分 28
发帖 12
注册 2007-3-8
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
有一个固定密码。怎么使用?
There is a fixed password. How to use it?
|
|
2007-3-8 14:54 |
|
|
zhaoxianqunks
初级用户
 
积分 28
发帖 12
注册 2007-3-8
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
我看到一个帖子是这样写的:for /d %%d in (%1.\*.*) do "%ProgramFiles%.\WinRAR\rar" a -r -m0 -inul %1.\"%%~nxd.rar" "%%~nxd"
for %%f in (%1.\*.*) do "%ProgramFiles%.\WinRAR\rar" a -r -m0 -inul %1.\"%%~nf.rar" "%%~nxf"
I see a post that is written like this:
for /d %%d in (%1.*.*) do "%ProgramFiles%.\WinRAR\rar" a -r -m0 -inul %1."%%~nxd.rar" "%%~nxd"
for %%f in (%1.*.*) do "%ProgramFiles%.\WinRAR\rar" a -r -m0 -inul %1."%%~nf.rar" "%%~nxf"
|
|
2007-3-8 14:55 |
|
|
test266
初级用户
 
积分 22
发帖 10
注册 2007-2-16
状态 离线
|
『第 5 楼』:
试试
使用 LLM 解释/回答一下
winrar e -ppassword a.rar c:\test\
-p是输入密码的开关,后面紧跟密码
Last edited by test266 on 2007-3-8 at 09:19 AM ]
winrar e -ppassword a.rar c:\test\
-p is the switch to enter the password, followed by the password
Last edited by test266 on 2007-3-8 at 09:19 AM ]
|
|
2007-3-8 22:18 |
|
|
zhaoxianqunks
初级用户
 
积分 28
发帖 12
注册 2007-3-8
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
比方说密码99999,那应该怎么写?麻烦给一个完整的批处理,谢谢了!
For example, the password is 99999, then how should it be written? Please give a complete batch script, thank you!
|
|
2007-3-9 04:09 |
|
|
zhoushijay
高级用户
    Autowalk
积分 845
发帖 375
注册 2007-3-3
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
echo off
cd /d "C:\Program Files\WinRAR" & winrar e -p99999 e:\11\*.rar e:\22
按照5楼说的,
echo off
cd /d "C:\Program Files\WinRAR" & winrar e -p99999 e:\11\*.rar e:\22
According to what the 5th floor said,
|
|
2007-3-10 00:03 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
我需要把一个文件夹下的所有压缩文件全部解压到指定的目录,(需要解压文件夹所有压缩文件都带有密码,密码都是一样的)这个应该怎么写?
“把一个文件夹下的所有压缩文件全部解压”,请问是哪个文件夹下的压缩文件?
“解压到指定的目录”,到底解压到哪个目录?
“密码都是一样的”,密码是什么?
你不会要写代码的人来帮你假设是哪个文件夹里的所有压缩文件吧,别人假设了文件夹,还要假设一个解压的目录,还要假设一个密码,别人很多时间帮你去假设吗?仔细看看这里:http://www.cn-dos.net/forum/viewthread.php?tid=1415&fpage=1
I need to extract all compressed files in a folder to a specified directory. (All compressed files in the folder need a password, and the passwords are all the same.) How should this be written?
"Extract all compressed files in a folder". Which folder's compressed files are we talking about?
"Extract to a specified directory". Which directory exactly?
"The passwords are all the same". What is the password?
Don't you expect the person writing code to help you assume which folder's compressed files they are? Others would have to assume the folder, assume an extraction directory, and assume a password. Would others spend a lot of time assuming for you? Take a close look here: http://www.cn-dos.net/forum/viewthread.php?tid=1415&fpage=1
|
|
2007-3-10 00:41 |
|
|
zhaoxianqunks
初级用户
 
积分 28
发帖 12
注册 2007-3-8
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
管理员,初来乍到,不知现在是否否和要求?是不是我的表达能力有问题,如果还是不行。麻烦你就删除了。谢谢
Administrator, I'm new here. I don't know if I meet the requirements now. Is it because of my expression ability? If it's still not okay, please delete it. Thank you.
|
|
2007-3-10 10:52 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
个人建议:标题为:
如何批量解压相同密码的RAR文件?
我的标题比你楼上的信息量大吧?
Personal suggestion: The title is:
How to batch extract RAR files with the same password?
My title is more informative than the information upstairs of yours?
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2007-3-10 10:56 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
@echo off
for /r d:\txe %%a in (*.rar *.zip) do (
rar x -p1234567 "%%a" "e:\temp\01"
)
没有测试,试试这个,有问题跟贴讨论。
另外,以后发贴注意帖子的标题要表明的你大意,标题就改成楼上 electronixtar 兄说的吧。
@echo off
for /r d:\txe %%a in (*.rar *.zip) do (
rar x -p1234567 "%%a" "e:\temp\01"
)
Not tested, try this, post if there are issues.
Also, please note that future posts should have titles indicating the general content. Change the title to what brother electronixtar mentioned above.
|
|
2007-3-10 12:54 |
|
|
zhaoxianqunks
初级用户
 
积分 28
发帖 12
注册 2007-3-8
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
谢谢楼上的,不知道我修改的是不是有问题,7楼的测试提示没有找到压缩文件,
我把实际修改的代码发出来,echo off
cd /d "C:\Program Files\WinRAR" & winrar e -ptxtdown.com F:\小说\111111\txtdown.com\*.rar F:\小说\111111\txtdown.com
注:在我硬盘实际路径是:F:\小说\111111\txtdown.com(在txtdown.com命名的文件夹大概有7千个压缩文件,解压密码是:txtdown.com)
11楼的提示不是正确的命令
修改如下:
@echo off
for /r F:\小说\111111\txtdown.com %%a in (*.rar *.zip) do (rar x -ptxtdown.com "%%a" F:\小说\111111\txtdown.com")
大家帮我看看错误在哪里?谢谢
Last edited by zhaoxianqunks on 2007-3-10 at 12:27 AM ]
Thanks to the person above. I don't know if there's a problem with my modification. The test prompt on the 7th floor said that the compressed file wasn't found. I'll post the actually modified code:
echo off
cd /d "C:\Program Files\WinRAR" & winrar e -ptxtdown.com F:\小说\111111\txtdown.com\*.rar F:\小说\111111\txtdown.com
Note: The actual path on my hard drive is: F:\小说\111111\txtdown.com (There are about 7,000 compressed files in the folder named txtdown.com, and the extraction password is: txtdown.com)
The prompt on the 11th floor isn't the correct command. The modification is as follows:
@echo off
for /r F:\小说\111111\txtdown.com %%a in (*.rar *.zip) do (rar x -ptxtdown.com "%%a" F:\小说\111111\txtdown.com")
Everyone, help me see where the error is? Thanks
Last edited by zhaoxianqunks on 2007-3-10 at 12:27 AM ]
|
|
2007-3-10 13:06 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
Re zhaoxianqunks:
把你的代码发出来看看。
Re zhaoxianqunks:
Please post your code for us to see.
|
|
2007-3-10 13:28 |
|
|
zhaoxianqunks
初级用户
 
积分 28
发帖 12
注册 2007-3-8
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
@echo off
for /r F:\小说\111111\txtdown.com %%a in (*.rar *.zip) do (rar x -ptxtdown.com "%%a" F:\小说\111111\txtdown.com")
我的QQ:290260605 正确处理后,我把它发出来.
Last edited by zhaoxianqunks on 2007-3-10 at 12:45 AM ]
@echo off
for /r F:\小说\111111\txtdown.com %%a in (*.rar *.zip) do (rar x -ptxtdown.com "%%a" F:\小说\111111\txtdown.com")
My QQ:290260605 After correct processing, I will post it.
Last edited by zhaoxianqunks on 2007-3-10 at 12:45 AM ]
|
|
2007-3-10 13:42 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Re zhaoxianqunks:
报什么具体是什么错误呢?最好能截个图出来看看。
Re zhaoxianqunks:
What specific error is it? It's best to take a screenshot and show it.
|
|
2007-3-10 13:55 |
|