CODE: [Copy to clipboard]@echo off for %%i in (*.txt) do ( set fn=%%i call ren "%%i" "%%fn:~-8%%" ) pause