
CODE: [Copy to clipboard]在写这个批处理的时候,突然又想到了一个不用第三方工具的方法:@echo off
lmod > nul
dir /b *.* | lmod /L* ren "[]" abc[#].jpg > %temp%\temp.bat
call %temp%\temp.bat
del %temp%\temp.bat
CODE: [Copy to clipboard]@echo off
:: 要求你的文件名中必须含有jpg这个扩展名
dir /b | find /n /i "jpg" > %temp%\temp.txt
for /f "delims=[] tokens=1,*" %%i in (%temp%\temp.txt) do ren "%%j" abc%%i.jpg && echo Rename "%%j" to "abc%%i.jpg"
del %temp%\temp.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |