Create a Template for Batch Replace H... Log Out | Topics | Search
Moderators | Edit Profile

X-Ways Support Forum » Hex Editing » Create a Template for Batch Replace Hex Values « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Omar Ramano
Username: hexuae

Registered: N/A
Posted on Sunday, Nov 11, 2007 - 11:27:   

Hello,

I have fallen in love with your HEX editor and wanted to know how to create a template to do the same operations that the Hex Value Replace feature does, but in a batch operation, thus doing it multiple times.

This following example doesn't make sense, but for the sake of an example.. How would I acheive the following?



Replace all 'AA' values with 'BB'
then
Replace all '3A' values with '3B'
then
Replace all '1D' values with 'DA'



Basically just creating a template of a bunch of replaces.

Thanks so much for the great software and I eagerly await a helpful reply! :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann
Username: admin

Registered: 1-2001
Posted on Sunday, Nov 11, 2007 - 12:01:   

Templates are merely a special way to represent data. They are totally inactive and can never change any data.

For what you have in mind you would use a script in WinHex instead. The script commands are all explained in the program help and user manual. Looks like you simply need the ReplaceAll command.
Top of pagePrevious messageNext messageBottom of page Link to this message

Omar Ramano
Username: hexuae

Registered: N/A
Posted on Sunday, Nov 11, 2007 - 13:26:   

Thanks so much for the fast reply and point in the right direction. It seems script is what I am looking for and not template.

Now I just have to figure out how to write ReplaceAll commands for a handful of the Hex values. Thanks again!

Add Your Message Here
Post:
Username: Posting Information:
Only registered users may post messages here, i.e. you need to have an account.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:
Forum operated by X-Ways Software Technology AG.