Sorry for replying late. Actually I didn't received the notification email.type Dir /X in the command prompt. That will show the short name for the folders, which should be different. The duplicates may have a space or another non-printing character at the end.
@Echo Off SetLocal EnableDelayedExpansion Set _Logfile="%Userprofile%\Desktop\DirLog.txt" If Exist %_Logfile% Del %_LogFile% Set _LogFile=^>^>%_LogFile% Set _Path1=%AllUsersProfile%\Start Menu\Programs\ Echo.Please Wait, reading All Users Call :_Read "All Users" Set _Path1=%Userprofile%\Start Menu\Programs\ Echo.Please Wait, reading Current User Call :_Read "Current User" Echo.Finished Pause Goto :EOF :_Read Echo.%1%_Logfile% Set _Comp1="%_Path1%"=="%%~dpI" PushD "%_Path1%" For /F "tokens=1 Delims=" %%I In ('dir /on /b /s') Do ( Set _CPath=%%~dpI Set _Cpath=!_Cpath:%_Path1%=%1\! If %_Comp1% (Echo.Path OK%_Logfile%) Else (Echo.Path=!_Cpath!%_Logfile%) Echo Names=%%~snxI %%~nxI%_Logfile% Echo.%_Logfile% ) PopD
Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.
If you're not already familiar with forums, watch our Welcome Guide to get started.
Join over 807,865 other people just like you!