المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : recursive folder compare



C# Programming
01-28-2010, 01:50 PM
Dear folks,
I have many folders to compare but I don't know how I can make a comparison between them without lacking for memory usage.
I explain :
I have two servers with around 10TB of data each. I use "xcopy" command (on Windows-DOS) for making the copy incrementaly.
The first server have datas changing everytime but the other is just for mirroring. Sometimes I need to check if every folders between the two servers are the same (just the folder). I used IEnumerable/List... to do the work but consume CPU usage or memory usage.
The structure of the folders are the same so what I need is to compare each structure only.
If anybody have an idea (with a sample code or just the algorithm or pseudo-code) I should appreciate it.

Many thanks to you all.