CODE: [Copy to clipboard]@echo off & setlocal enabledelayedexpansion for %%i in (*.rmvb) do ( set old=%%i ren "%%i" "!old:~-7!" )