So the script works well, I usually run it in the folder with the files I modify (Mainly .mp3's) to trim the first X characters from the filename (Numbers spaces dashes ect) of multiple files.
@echo off setLocal enableDelayedExpansion set X=5 set FOLDER_PATH=. pushd %FOLDER_PATH% for %%f in (*) do if %%f neq %~nx0 ( set "filename=%%~nf" set "filename=!filename:~%X%!" ren "%%f" "!filename!%%~xf" ) popd But running it on my SD Card (Formatted for Galaxy S4 w./ Android 4.3) that I have plugged in it works perfectly for 70% of the files. But for some it runs twice, and for a very rare few it acts like it hasn't run at all. I'm completely befuddled by it, is it just the SD Card?