![]() |
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-10 09:01 |
47,811 topics / 349,897 posts / today 0 new / 48,255 members |
| DOS批处理 & 脚本技术(批处理室) » How to batch rename extensions using batch processing? |
| Printable Version 2,137 / 12 |
| Floor1 JamesYou | Posted 2008-11-05 18:47 |
| 初级用户 Posts 36 Credits 52 | |
|
How to batch rename files with the extension "*.rar.重命名" to "*.rar" using batch processing?
|
|
| Floor2 yishanju | Posted 2008-11-05 19:02 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
REN *.RAR.重命名 *.rar
|
|
| Floor3 yishanju | Posted 2008-11-05 19:03 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
copy *.RAR.重命名 *.rar
copy *.RAR.rename to *.rar |
|
| Floor4 JamesYou | Posted 2008-11-05 19:15 |
| 初级用户 Posts 36 Credits 52 | |
|
LS的,copy不是复制命令吗?
LS de, copy bu shi fu zhi ming ling ma? Wait, "LS" here might be a typo or specific term in the context. But based on the content, the translation of the Chinese part "copy不是复制命令吗?" is "copy isn't the copy command?" So the whole thing is: LS的,copy不是复制命令吗? LS de, copy isn't the copy command? |
|
| Floor5 JamesYou | Posted 2008-11-05 19:28 |
| 初级用户 Posts 36 Credits 52 | |
|
REN *.RAR.重命名 *.rar
Why doesn't it work? |
|
| Floor6 yishanju | Posted 2008-11-05 19:36 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
Don't just say why it doesn't work. Tell me where you executed the command, how you executed it, what error message you got, and you can also paste a screenshot.
|
|
| Floor7 yishanju | Posted 2008-11-05 19:36 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
Originally posted by JamesYou at 2008-11-5 19:15: It can also be used to rename through this command. |
|
| Floor8 tireless | Posted 2008-11-05 19:55 |
| 银牌会员 Posts 1,122 Credits 2,025 | |
Originally posted by yishanju at 2008-11-5 07:36 PM: No! You must not use ren. Just use move. move is okay, but copy is not. However, the renaming with move does not support wildcards. [ Last edited by tireless on 2008-11-5 at 19:59 ] |
|
| Floor9 yishanju | Posted 2008-11-05 20:00 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
...
I have tried it on the XP system. |
|
| Floor10 yishanju | Posted 2008-11-05 20:08 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
C:\Documents and Settings\haige\Desktop>copy *.txt *.txt2
cn-dos.txt QQ.exe.txt Network Management Software.txt 3 files copied. Directory of C:\Documents and Settings\haige\Desktop 008-10-28 15:16 917 cn-dos.txt2 008-11-05 19:40 251,180 QQ.exe.txt2 008-11-04 09:55 323 Network Management Software.txt2 3 File(s) 252,420 bytes 0 Dir(s) 23,787,970,560 bytes free Delete the original files, doesn't that mean you can use this command to rename? [ Last edited by yishanju on 2008-11-5 at 20:09 ] |
|
| Floor11 HAT | Posted 2008-11-05 22:04 |
| 版主 Posts 5,017 Credits 9,023 | |
|
Is it a bit of a waste of resources if a 10GB file is renamed using this method?
|
|
| Floor12 yishanju | Posted 2008-11-05 22:12 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
It depends on the situation and actual needs, right?
|
|
| Floor13 weasel | Posted 2008-11-05 22:43 |
| 初级用户 Posts 66 Credits 118 | |
|
Here's the translation:
Here's a batch script I made that might be useful
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |