@echo offset t=%time:~,2%if %t% lss 10 set t=0%time:~1,1%set t=%t%%time:~3,2%%time:~6,2%for /f "delims=" %%a in ('dir /a-d/b *.txt') do ren "%%~a" "%%~na%t%%%~xa"pause