
CODE: [Copy to clipboard]错误提示:The syntax of the command is incorr@echo off
color 1f
MODE CON: COLS=35 LINES=20
:strat
SET NAME=
SET /P NAME=请添写程序名称:
if exist %NAME%.exe.重命名 REN %NAME%.exe
if exist %NAME%.jpg.重命名 REN %NAME%.jpg
if exist %NAME%.mp3.重命名 REN %NAME%.mp3
goto strat
CODE: [Copy to clipboard]ren /?@echo off
color 1f
MODE CON: COLS=35 LINES=20
:strat
SET NAME=
SET /P NAME=请添写程序名称:
for %%a in (exe jpg mp3) do (
if exist "%NAME%.%%a.重命名" ren "%NAME%.%%a.重命名" "%NAME%.%%a"
)
goto strat
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |