Resource Hacker v3.4 Plus Edition


Tanınmış Üye
Süper Moderatör
Version 5.1.2
Last updated: 13 July 2018
Copyright © 1999-2018 Angus Johnson
Freeware - no nags, no ads and fully functional.

Resource Hacker™ is a resource editor for 32bit and 64bit Windows® applications. It's both a resource compiler (for *.rc files), and a decompiler - enabling viewing and editing of resources in executables (*.exe; *.dll; *.scr; etc) and compiled resource libraries (*.res, *.mui). While Resource Hacker™ is primarily a GUI application, it also provides many options for compiling and decompiling resources from the command-line.



Compiling can be initiated either by opening an existing resource script file, or by creating one from scratch using Resource Hacker's editor.

A complete list of Resource-Definition Statements can be found here.

Additional features of Resource Hacker's compiler include: The #INCLUDE directive (to access definition statements in header files etc) can be nested to multiple levels, as can the #IF, and #IFDEF directives. #DEFINE, #UNDEF, #IF, #ELIF, #ELSE, #IFDEF, #IFNDEF, #INCLUDE, and #PRAGMA directives are all supported. Strings, between double-quote (") characters, may contain typical 'C' style backslashed 'escaped' characters — \t , \n , \\ , \" , \x, \u and \377 (octal). A double-quote within a string must be 'escaped' using either a preceding backslash or with another double-quote. Script comments are preceded either by double forward-slashes (//) or by a semi-colon (;). Filenames with relative paths are allowed. Filenames that contain spaces must be enclosed within double-quote characters.

Compiler error messages are reported, even errors nested within INCLUDE statements ...

Viewing and Editing Resources:
Once a resource file has been opened, its resources will generally be displayed as either an image (or group of images) or as decompiled text. Binary resources, usually images, can't be edited directly with Resource Hacker, but they can still be very easily exported and imported once they've been modified by an external image editor. (I see no benefit in duplicating what third-party image editors do so well.)



Menu and Dialog resource types have their own WYSIWYG designers:



Binary resources that have unknown formats will be displayed as read-only binary text. (Any resource can also be viewed in this fashion if desired.)

Other Actions:

Command Line Syntax:
Just about all the functionality of Resource Hacker™ can be accessed from the command line without having to open the Resource Hacker™ GUI.
Command line instructions and Resource Hacker™ scripts can remove the drudgery entailed with repeating Resource Hacker™ tasks.
Command-line instructions are a combination of switch statements followed by switch parameters as explained in the following table: Command line statements:

Switch Parameter
-open filename - the name of the file that is to be modified. It should be a Windows PE file (*.exe, *.dll etc) or a compiled or uncompiled resouce file (*.res or *.rc)
-save usually a filename for the new or modified file, but can also be a folder when extracting multiple resources
-resource filename - contains a resource being added to the opened file.
-action action to be performed on the opened file
  • add - add a resource, but fails if it already exists
  • addoverwrite - add a resource, and overwriting if it already exists
  • addskip - add a resource, but skipping if it already exists
  • compile - compiles a resource script file (*.rc) to a binary resource file (*.res)
  • delete - delete a resource
  • extract - extract a resource
  • modify - modify a resource
  • changelanguage(langID) - changes the language of ALL resources
-mask resource mask - Type,Name,Language
commas are mandatory but each of Type, Name & Language are optional
-log Filename or CONSOLE or NUL
CONSOLE can be abbreviated to CON
Logs the details of the operation performed
If this switch is omitted, the log will be written to resourcehacker.log
-script filename - contains a multi-command script, NOT a resource script for more info: -help script
-help options - command-line or script (always logged to CONSOLE) other switches are ignored.

  1. Switch identifiers (except -script) may be abbreviated down to a single char (eg -res or -r).
  2. Switch instructions do not have to be in any particular order.
  3. File names that contain spaces must be enclosed within double quotes.

Batch file Examples (using rh.exe instead of ResourceHacker.exe in places for brevity)

ResourceHacker.exe -help
@pause :: to see the console output before the CMD window closes.

rh.exe -open .\in\resources.rc -save .\out\resources.res -action compile -log NUL

rh.exe -open old.exe -save new.exe -action addskip -res my.ico -mask ICONGROUP,MAINICON,

rh.exe -open source.exe -save .\icons -action extract -mask ICONGROUP,, -log CON

rh.exe -open source.exe -save .\dialogs.rc -action extract -mask DIALOG,, -log rh.log

ResourceHacker.exe -script myscript.txt
Son düzenleme:

Yazar: guclusat
Makale başlığı: Resource Hacker v3.4 Plus Edition
Kaynak URL: Uydudoktoru Forum-
Alıntı ve Paylaşım Kuralları: Kaynak dahil olmak üzere makaleden kısa alıntı yapılabilir ancak makalenin tamamı yazarın izni olmadan başka bir siteye kopyalanamaz veya başka bir yerde yayınlanamaz.


Tanınmış Üye
Süper Moderatör
Download version 5.1.2:
EXE install (2.9MB)

ZIP install (3.0MB)

Changes since version 5.1.0:
  • Bugfix: incorrect editor fonts when displaying multibyte characters
  • Bugfix: compiler mishandled hex. escape chars with ambiguous trailing text.
  • Bugfix: incorrect handling of #define directive
  • Bugfix: incorrect handling of statusbar alignment in dialog resources
  • Bugfix: line numbering broken when swapping between editing and binary views
  • Bugfix: relative paths in filenames was broken
  • Bugfix: incorrect error reporting while parsing some #include files
  • Bugfix: extracting resources using commandline scripts was buggy.
  • Added: added support for multi-line comments /* ... */
  • Updated: can now open and save non-resource type text files
  • Updated: context help improved