Jump to content
Sign in to follow this  

String & BinaryString

Recommended Posts


$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
FileWrite('VideoConv.exe',BinaryString($c)); => VideoConv.exe - don't work, it's not same i think

Share this post

Link to post
Share on other sites

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?

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.