SandelPerieanu Posted January 4, 2007 Share Posted January 4, 2007 $a = FileRead('*.*') $b = BinaryString($a) $c = String($B) ; = 0x..... $d = BinaryString($c) $a = $d ???? oÝ÷ Ù·jëjëh×6 $a=FileRead('VideoConverterPro.exe') ; size=10 Mb $b=BinaryString($a) $c=String($B) ........................ FileWrite('VideoConv.exe',BinaryString($c)); => VideoConv.exe - don't work, it's not same i think Link to comment Share on other sites More sharing options...
Uten Posted January 5, 2007 Share Posted January 5, 2007 I think you will find FileRead to protects it self when reading binary data, witch it is not supposed to do, as I understand it. I think you would have to wrap (or find a udf wrapping) some of the native File APIs to get your sample working? The helpfile also says something about appending chr(10) if you want String to return a BinaryString? Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 5, 2007 Moderators Share Posted January 5, 2007 Have you tried to use Hex first? $a = Hex(BinaryString(FileRead('VideoConverterPro.exe'))) FileWrite('VideoConv.exe',BinaryString('0x' & $c)) 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...
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