View Single Post
Old 06-16-2009, 01:50 PM   #3 (permalink)
Neablis
Registered User
 
Join Date: Jun 2009
Posts: 4
OS: Windows 7


Re: Creating batch file to Check Directories

I think i may have got a little further, if not working. Havnt done extensive testing. it leaves the remements of the folder in the search but that can be ignored in my c++ code hats using it. The purpose to find all files that exist in DirA that dont exist in DirB so instead of

Code:
dir /B /O %dirA% >dirA.txt
dir /B /O %dirB% >dirB.txt
Code:
dir /B /O /S %dirA% >dirA.txt
dir /B /O /S %dirB% >dirB.txt
to include all the sub directory's in the search. I saw a lot of people looking for similar stuff when looking for help, so it is working i hope this can help people.
Neablis is offline   Reply With Quote