|
JamesYou
初级用户
 
积分 52
发帖 36
注册 2008-10-10
状态 离线
|
『楼 主』:
如何用批处理批量把重命名的扩展名?
使用 LLM 解释/回答一下
如何用批处理批量把“*.rar.重命名”文件重命名成“*.rar“?
How to batch rename files with the extension "*.rar.重命名" to "*.rar" using batch processing?
|
|
2008-11-5 18:47 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
REN *.RAR.重命名 *.rar
REN *.RAR.重命名 *.rar
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-5 19:02 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
copy *.RAR.重命名 *.rar
copy *.RAR.重命名 *.rar
copy *.RAR.rename to *.rar
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-5 19:03 |
|
|
JamesYou
初级用户
 
积分 52
发帖 36
注册 2008-10-10
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
LS的,copy不是复制命令吗?
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?
|
|
2008-11-5 19:15 |
|
|
JamesYou
初级用户
 
积分 52
发帖 36
注册 2008-10-10
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
REN *.RAR.重命名 *.rar
为什么不行啊?
REN *.RAR.重命名 *.rar
Why doesn't it work?
|
|
2008-11-5 19:28 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
别只说一个为什么不行,说说你在哪执行了命令,怎么执行的,出了什么样的错误提示,截个图贴上来也行啊
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.
此帖被 +2 点积分 点击查看详情 评分人:【 HAT 】 | 分数: +2 | 时间:2008-11-5 19:47 |
|
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-5 19:36 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Originally posted by JamesYou at 2008-11-5 19:15:
LS的,copy不是复制命令吗?
也可以通过这个命令重命名。
Originally posted by JamesYou at 2008-11-5 19:15:
LS, isn't copy the copy command?
It can also be used to rename through this command.
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-5 19:36 |
|
|
tireless
银牌会员
    
积分 2025
发帖 1122
注册 2007-9-5
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by yishanju at 2008-11-5 07:36 PM:
也可以通过这个命令重命名。
否!非要不用 ren,就用 move。move 是可以的,但 copy 不可以。
不过用 move 的重命名不支持通配符。
Last edited by tireless on 2008-11-5 at 19:59 ]
Originally posted by yishanju at 2008-11-5 07:36 PM:
You can also use this command to rename.
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 ]
|
|
2008-11-5 19:55 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
。。。。
我可是在XP 的系统试过了的
...
I have tried it on the XP system.
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-5 20:00 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
C:\Documents and Settings\haige\桌面>copy *.txt *.txt2
cn-dos.txt
QQ.exe.txt
网络管理软件.txt
已复制 3 个文件。
<img src="images/smilies/face-angry.png" align="absmiddle" border="0">
C:\Documents and Settings\haige\桌面 的目录
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 网络管理软件.txt2
3 个文件 252,420 字节
0 个目录 23,787,970,560 可用字节
把原文件删了,不就算是可以用这个命令重命名么?
Last edited by yishanju on 2008-11-5 at 20:09 ]
C:\Documents and Settings\haige\Desktop>copy *.txt *.txt2
cn-dos.txt
QQ.exe.txt
Network Management Software.txt
3 files copied.
:mad:
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 ]
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-5 20:08 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 11 楼』:
Re 10楼
使用 LLM 解释/回答一下
如果一个10GB的文件用这个方法来重命名,是不是有点浪费资源呢?
Is it a bit of a waste of resources if a 10GB file is renamed using this method?
|

 |
|
2008-11-5 22:04 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
能不能用那看情况和实际需要吧,
It depends on the situation and actual needs, right?
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-5 22:12 |
|
|
weasel
初级用户
 
积分 118
发帖 66
注册 2006-8-18
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
给你个我做的批处理也许有用
@ECHO OFF
color 0A
setlocal ENABLEDELAYEDEXPANSION
title 批量更改当前目录下的图片(jpg)文件名!
echo.
echo.
echo ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
echo 批量更改当前目录下的图片(jpg)文件名!
echo ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
echo.
set fhz=jpg
SET NO=0
set namet=
SET /P namet=请选择输入文件名前缀:
FOR /F %%i IN ('dir /b *.%fhz%') DO (
SET /A NO+=1
REN %%i %namet%!NO!.%fhz%
)
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
echo 文件更名完毕.....按任意键退出
echo ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
pause>nul
Here's the translation:
Here's a batch script I made that might be useful
@ECHO OFF
color 0A
setlocal ENABLEDELAYEDEXPANSION
title Batch rename image (jpg) filenames in current directory!
echo.
echo.
echo ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
echo Batch rename image (jpg) filenames in current directory!
echo ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
echo.
set fhz=jpg
SET NO=0
set namet=
SET /P namet=Please choose and enter the filename prefix:
FOR /F %%i IN ('dir /b *.%fhz%') DO (
SET /A NO+=1
REN %%i %namet%!NO!.%fhz%
)
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
echo Filename renaming completed.....Press any key to exit
echo ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
pause>nul
|
|
2008-11-5 22:43 |
|