Post your questions, opinions and reviews of the MPC1000. This forum is for discussion of the OFFICIAL Akai OS (2.1). If you wish to discuss the JJ OS, please use the dedicated JJ OS forum
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 :D

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 & Pause




Enjoy !
PS : Thanks to "I'mHere" for his help for this script.