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
-
S4 / 1.973 cc / 162 PS / 140 ft/lb (190 Nm) @ 4.900 / 0 - 62 mph (100 km/h): 6,8 s / Vmax: 137 mph (221 km/h) (click images for a larger v...
-
H ave been using the Smart Tunnel to work for the past few days and incase you are wondering like me why both the tunnels look different int...
-
Reports of the death of 4x4s greatly exaggerated A bit before Christmas, The Times splashed their front page with the almost gleeful headl...
-
V12 / 5.576 cc / 385 PS / 406 ft/lb (550 Nm) @ 4.000 / 0 - 62 mph (100 km/h): 6,6 s / Vmax: 155 mph (250 km/h) (click images for a larger ...
-
Dan Neil has another must read article in today's LA Times. He heaps praise and digs the grave of Honda's fuel cell marvel. I'd ...
-
The HMS Uranus Art Car is boldly going were few dare to go. Oregon watch out!!!
-
Well Kia is sure going after us "toaster pilot's" out there! Still likin' my xBox though...
-
A number of articles about "green cars" worth perusing in Saturday's New York Times Automotive section . Usually devoted to c...
-
My back is killing me ( again ), so having all kind of difficulties staying focused today. Be it work; be it blogging; be it life in general...
No comments:
Post a Comment