@echo off cls echo. echo GuidoZ Directory Compare - http://www.GuidoZ.com echo Scripted on Jan 7th, 2005 for "Ring-of-Fire" group. echo Feel free to modify or use this batch file however you echo deem fit, however proper credit is always appreciated! echo. echo In order to use this batch file, you must have a base text echo file named DIR1.TXT that was created with the dir /s command. echo. echo This batch file will create a second DIR text file, then echo compare the two. Be sure to have the original DIR1.txt on echo the Desktop. Without it, this batch file cannot complete. echo *It must be named DIR1.TXT or else this will error out!* echo This batch file will create DIR2.TXT & FC.TXT on the Desktop. echo. echo This will only work on the English version of Windows. You echo will have to modify the English directory structure if being echo used on a non-English version of Windows. (Simple to do.) cd. pause IF EXIST "%userprofile%\Desktop\FC.TXT" GOTO ERROR IF EXIST "%userprofile%\Desktop\DIR2.TXT" GOTO ERROR IF EXIST "%userprofile%\Desktop\DIR1.TXT" GOTO RUN cls rem ----------------------------------------------------------- rem If DIR1.TXT is missing from the Desktop, you'll end up here rem ----------------------------------------------------------- echo. echo Original file not found! Make sure it's on the Desktop and echo named properly! (Should be DIR1.TXT) Fix it and run again. pause exit :ERROR cls rem ---------------------------------------------------------- rem If any other files are found that are used, you'll go here rem ---------------------------------------------------------- echo. echo Warning! Some files I was planning on making already exist echo on the Desktop! Please check and make sure that the files echo DIR2.TXT and FC.TXT do not exist on the Desktop already. echo. echo Press any key to exit. (Try again after fixing the problem.) pause > NUL exit :RUN cls rem --------------------------------------------------- rem If the directions are followed, you'll jump to here rem --------------------------------------------------- echo. echo Generating current directory structure, please wait... echo. cd %WINDIR% cd\ dir /s > "%userprofile%\Desktop\dir2.txt" echo Generation complete! Starting file compare, please wait... echo. cd %userprofile%\Desktop fc /A /C /L /N dir1.txt dir2.txt > "%userprofile%\Desktop\FC.txt" echo Assuming everything went according to plan, file compare echo is complete! The results are on the Desktop named FC.TXT echo Press any key to view the results. My work here is done. pause > NUL start notepad "%userprofile%\Desktop\fc.txt" exit