
CODE: [Copy to clipboard]没有测试...@echo off
for /f "delims=" %%i in ('dir /od /b *.txt') do (
call :label "%%i"
)
:label
for /f "skip=1 delims=" %%j in ('type %1') do (
ren %1 "%%j.txt"&goto :eof
)
goto :eof
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |