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
-
TAKEN FROM CDN: Victor was the very first student to upload an entry to the competition website. He separates the passenger compartment from...
-
Morning, Friends! If you haven't checked out Kindle Fire Department yet and you own a Kindle Fire, you are not human. I'm TELLING YO...
-
I had to post this video about men flying only feet away from cliff walls
-
Y esterday, I was working as usual on Windows Vista and all a sudden, I discovered that I could no longer select multiple files in Windows E...
-
B ill Gates has announced his plans to transition out of his role in Microsoft. It will be a two-year transition process and by July 2008, h...
-
I 've managed to solve the mystery of the missing SharePoint Workflow templates in the Enterprise Content Management Starter Kit . The w...
-
That is a barn, sometimes they are easy to distinguish, and sometimes, they look like a lot of wood in a vague pile that might have space u...
-
This is so brilliant (though it clearly belongs to a genre that I'd normally avoid at any cost) and brought to my attention because I Am...
-
If you ever need to access one of the out-of-the-box SharePoint Web Services, you may find this post valuable to you. I was tasked to access...
No comments:
Post a Comment