Resource File Extractor

This is a little utility I have been meaning to take the time and write for quite some time now..  As with a lot of utilities what it does is not all that complex, but not having it sometimes means you have to jump through hoops.

 

Ever want to get a resource out of an exe, dll or resources file?  Well now you can, with WinResourceFileExtractor or the command line version RFE.  The logic is really pretty simple and it does make several assumptions:

 

Logic flow: 

1.      Determine if the source file is an assembly (exe or dll), resources or resx file.

2.      If it is an assembly:

a.      Load the assembly

b.      Enumerate over the Manifest resource names and see if any of the names have an extension of jpg, gif, bmp, ico, txt, resources

c.      If the extension is one that it is looking for then extract the stream and save it

3.      If it is a resources or resx file

a.      Get the needed resource reader

b.      Enumerate over the key values and see if any of the names have an extension of jpg, gif, bmp or ico

c.      If the extension is one that it is looking for then cast the value of the resource to either a Bitmap or Icon and save the object

 

Links

The code

The full document

posted on Sunday, October 09, 2005 7:10 PM

Feedback

# re: Resource File Extractor

Je vous remercie infiniment!

Think!
6/27/2006 10:43 AM | Michel

# re: Resource File Extractor

gd
8/20/2006 5:43 AM | eged

# re: Resource File Extractor

Sorry but my Frence is poor and I dont want to sound like a fool. Thank you for have your code and compiled code on the internet. It was realy help full. Keep up the good work.
9/29/2007 7:29 PM | HRH King Edgar of Wessex

# re: Resource File Extractor

Excellent work, very nice tool!
10/9/2007 6:14 AM | DerikJ

# re: Resource File Extractor

Could you possibly add the feature to search for a specific format, just a "search for specific format" tick box, which causes a new text box to appear, where the user would enter their desired extension.
2/3/2008 7:39 AM | Rob

# re: Resource File Extractor

excellent job !!! :) i m lovin' it!
2/28/2008 11:38 PM | kshitij

# re: Resource File Extractor

Great
8/18/2008 1:24 AM | Shouvick Mondal

Post Comment

Title  
Name  
Url
Comment   
Please enter the following code into the box below to stop spammers

  
Enter Code Here *