Ok! It turns out that the project I was working on previously about the .NET assembly comparison; it wasn't a compare on one or two .exes or .dlls but to compare about 200 assemblies. *GiAiAiAH* Yeah! That means I gotta do this for approximately 200 times?! *That's Totally iNSaNe!*
But then, before you say, "What's the big deal? You can write a C# program wot?" I would like to assure you that I have thought about that as well, but then, I felt that writing a C# program just to do all that is too overkill. So, I have decided to use a much simpler and traditional approach instead - DOS!
Here's how I did it. To produce the MSIL, I ran the following once in each of the source and target folder:
for %i in (*.dll) do ildasm %i /out=c:\output\source\%i.il
I substituted c:\output\source with c:\output\target for the target assemblies. If your assemblies are executables, replace the *.dll with .exe.
To compare the files, I simply typed:
for %i in (*.il) do fc c:\output\source\%i c:\output\target\%i > c:\output\results\%i.txt
That's It! Cool huh?
Popular Post
-
F inally found out who smsed me - it turns out to be one of my colleagues *HuHuHu* * paiseh * * paiseh * Sorry buddy, *sweating* didn't ...
-
I've been looking into the programmable aspects of SQL Server 2005 for the past days and one of the things that interest me most is the ...
-
ARC213 - Microsoft Architecture Vision & Direction by Gurpreet Pall Started my day with this. Was 15 minutes late but I manage to get...
-
I was roped in to work on Active Directory these two days as the dudes in the MIS department had ran out of ideas. I was approached by my CI...
-
"Arguments are 90% emotions and 10% nonsense." That's what I learnt from my trainer the other day. Most of the time, human be...
-
Many organizations of today are looking at Business Process Outsourcing (BPO) to streamline their organizations' processes (and to cut c...
-
ARC303 - Designing and Writing Interoperable Services: The Contract First Approach by Malek Kemmou Started the day with this session. It ...
-
M anaging indexes in SQL Server 2005 has changed. All the index management functions are now located in a new and more standardized, ALTER I...
-
Nothing exciting today besides the track sessions. Traffic is gila as usual. Waited at the INETA booth in the morning for WenChing to finis...
No comments:
Post a Comment