
CODE: [Copy to clipboard]@echo off
for /f "delims=" %%i in ('dir/b/s *.htm^|find ".htm"') do echo "%%i" "%%il"
pause
CODE: [Copy to clipboard]@echo off
for /f "delims=" %%i in ('dir /a-d /b/s d:\html\*.htm') do echo "%%i" "%%il"
pause
CODE: [Copy to clipboard]理论上行得通,未测试。@echo off
pushd d:\html
ren *.htm *.html 2>nul
for /r /d %%i in (*) do ren "%%i\*.htm" "%%i\*.html" 2>nul
popd
exit /b 0
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |