@echo off rem 正在搜索... for /f "delims=" %%i in ('dir /b /a-d /s "*.md"') do ren "%%i" "%%~ni.txt" rem 搜索完毕 @pause