By alamin
Tue Mar 08, 2011 10:45 am
Create a file named "MPCfilenamechecker.bat", and paste the following code in it.
Then put this file in the folder in which you want to find all files whose filenames have the same 16 characters (those files will be recognized as the same file in the MPC !!) and run the batch !
Thus, you'll be able to find which files need to be renamed
Enjoy !
PS : Thanks to "I'mHere" for his help for this script.
Then put this file in the folder in which you want to find all files whose filenames have the same 16 characters (those files will be recognized as the same file in the MPC !!) and run the batch !
Thus, you'll be able to find which files need to be renamed
Code: Select all
@Echo oFF & setlocal enabledelayedexpansion
For /R "." %%a in (.) do (
pushd "%%~fa"
For /F "delims=" %%i in ('dir/a-d/b/o:n') do (
set "$Base=%%~ni"
set "$Subs=!$Base:~16!"
set $cnt=0
if defined $subs (
For /F "delims=" %%o in ('
dir /b/a-d "!$Base:~0,16!*%%~xi"
') do set /A $cnt+=1
if !$cnt! gtr 1 echo(%%~fi
)
)
popd & echo(
)
Endlocal & PauseEnjoy !
PS : Thanks to "I'mHere" for his help for this script.

