比如处理txt文件
@echo offcd/d "%~dp0"for /f "delims=" %%i in ('dir/b/s *.txt')do ren "%%i" "%%~ni%%~zi%%~xi"