Sign in to follow this  
Followers 0
SandelPerieanu

String & BinaryString

3 posts in this topic

$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

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))

[center]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.[/center]

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  
Followers 0