Enforcer Posted July 28, 2008 Share Posted July 28, 2008 Hi all, here what i'm truing to do: Open exe file by simple function - file open... Then I need to replace some strings in it, and then simple close it, without writing other file... Can I do this somehow ?... Because then I will need to replace those strings back without file corrupt... Why I chosed exe file ? because there exist all kind of chars... and if some char will be replaced unkorect, file will be broken... Please help... And sorry for my English I know its bad but i really cant solve that problem by myself... [RU] Zone Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 28, 2008 Moderators Share Posted July 28, 2008 Hi all, here what i'm truing to do:Open exe file by simple function - file open...Then I need to replace some strings in it, and then simple close it, without writing other file...Can I do this somehow ?...Because then I will need to replace those strings back without file corrupt...Why I chosed exe file ? because there exist all kind of chars... and if some char will be replaced unkorect, file will be broken...Please help... And sorry for my English I know its bad but i really cant solve that problem by myself...Why are you editing an executable file?Those files are written in binary, you'll need to play with the binary functions in the help file, and open the files in binary mode as well.See:FileOpen()/FileRead()/*Binary* functionsIn the help file. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Enforcer Posted July 28, 2008 Author Share Posted July 28, 2008 Hm interesting, eny idea how to replace strings in binary mode ?)) [RU] Zone 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