Proph Posted June 28, 2005 Share Posted June 28, 2005 Is there a way to hex edit a file using autoit? I just want to do a simple string replace by hex editing a file. Link to comment Share on other sites More sharing options...
Valuater Posted June 28, 2005 Share Posted June 28, 2005 hex to string then string to hex maybe? 8) Link to comment Share on other sites More sharing options...
blindwig Posted June 28, 2005 Share Posted June 28, 2005 Not natively, but do a search - there are a few DLL wrapper UDFs on this forum for what you're trying to do. My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions Link to comment Share on other sites More sharing options...
Lazycat Posted June 28, 2005 Share Posted June 28, 2005 With beta you can use DllSctruct* functions for handle binary. For instance you can start with APIFileReadWrite UDF. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Proph Posted June 28, 2005 Author Share Posted June 28, 2005 Thanks I will try that. Link to comment Share on other sites More sharing options...
Proph Posted June 29, 2005 Author Share Posted June 29, 2005 I can't seem to figure out how to use APIFileReadWrite to do exactly what I want. I asked in the thread posted... but I think in the thread I started is a more appropriate place to ask for help. What I want to do is look for a 4 character string of text within a binary file and replace all instances of that string with 4 other characters. Like search for I386 and replace it with XPPC. I am making a tool that helps people create a Windows multiboot disk. I allready have a way to do this by using another hex editing tool... but I want to get rid of the other hex editing tool and only use autoit to do it. Thanks to anyone who trys to help. Autoit is the best tools since dos! Link to comment Share on other sites More sharing options...
Proph Posted June 30, 2005 Author Share Posted June 30, 2005 Thanks Larry. That looks like an explanation that clears a lot more up for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now