@echo off setlocal enabledelayedexpansion color 0b set /p FOLDER_PATH=Drag the folder into here: :begin set /p X=How many chars do you want to chop off the beginning? set /p NEW_PREFIX=What would you like to put infront instead? pushd %FOLDER_PATH% for %%f in (*) do if %%f neq %~nx0 ( set "filename=%%~nf" set "filename=!filename:~%X%!" echo "%NEW_PREFIX%!filename!%%~xf" ) popd echo. set /p YORN=Is that what you want(Y/N)? if /i "%YORN%" NEQ "Y" goto begin pushd %FOLDER_PATH% for %%f in (*) do if %%f neq %~nx0 ( set "filename=%%~nf" set "filename=!filename:~%X%!" ren "%%f" "%NEW_PREFIX%!filename!%%~xf" ) popd