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.