Use FileBinReplace utility to search and replace data in binary files.

FileBinReplace is a command line utility that can be used to search and replace data in binary files. FileBinReplace is very fast and can process multiple files specified with a file mask. Because binary files usually have fixed format you should be very careful not to damage the internal structure of these files. For example, if you specify search and replace strings of different length the length and structure of the produced files will also differ from the source files. As a result the produced files may not work as expected.

DownloadDownload FileBinReplace.exe (16 KB).

Here is the help screen containing complete description and examples

Usage: FileBinReplace [/C] [file masks] [search text] [replace text]

Command line parameters:

/C Use case-sensitive search. The default is case-insensitive search and replace operation.
file mask The file mask to be used for the file search. Example: *.DLL.
search text The text you want to find and replace. If the text includes spaces enclose the entire parameter in double quotes.
replace text The text that will replace found occurrences of the search text. If the text includes spaces inclose the entire parameter in double quotes.

Run FileBinReplace.exe without parameters from the DOS command prompt to see full description of the supported parameters.