##
@echo off setlocal enabledelayedexpansion set point=. for %%i in (*.avi) do ( set "name=%%i" set a=!name:~0,2! set b=!name:~2! set a=!a!%point% set d=!a!!b! ren "%%i" "!d!" ) pause
##
@echo off setlocal enabledelayedexpansion set point=. for %%i in (*.avi) do ( set "name=%%i" set a=!name:~0,2! set b=!name:~2! set a=!a!%point% set d=!a!!b! ren "%%i" "!d!" ) pause