CODE: [Copy to clipboard]@echo off & setlocal enabledelayedexpansion for %%i in (aaa*.*) do ( set file=%%i move /y !file! !file:~-8! && Move !file! Done!)