User: editor -- 2010-03-18 << 450 452 >> |
Hits: 4343 |
Type: Search replace binary |
Search all Search replace binary examples |
Description: |
How to replace bytes in the specific postion of many binary files? I have some binary files with similar structure, I want to replace the byte from 28-45 with string 'reserved' following by 10 zero bytes, how to replace all files all at once? |
Input Sample: |
........ ........... ...[byte28].....[byte45].. ....... |
Output Sample: |
........ ........... ...reserved\0\0\0\0\0\0\0\0\0.. ....... |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open 'Tools->Batch Runner' menu. 2. drag files from window file browser to 'Batch Runner' window. 3. click 'Fast Replace' button * click 'Add' in 'Search', input: in 'Replace', input: click 'ok' * select 'Regular Expression', 'Binary File' option and 'Cross line' option 4. Click 'Start', all binary file will be replaced. Note: if you checked 'Change Output Folder' option,and select an existed folder, then new file can be created at the folder you seleted, the old file will not be overwritten. |
Screenshot 1: Fast_Replace_Window |