PantZ4 Posted October 9, 2006 Posted October 9, 2006 (edited) Ok I got this program I wanna to create a exe when excuted. So I have taken my exe file and convert it to a txt file so I can see the ANSI strings. So I thougt I was clever and then do the _StringtoHex command. Here is my srcipt #include <string.au3> #include <file.au3> $File = FileOpen("testexe.txt",0) $String = FileRead($File) FileClose($File) $Hex = _StringToHex($String) _FileCreate(@workingdir & "\hex.txt") $File = FileOpen(@workingdir & "\hex.txt",2) FileWrite($File,$Hex) FileClose($File) But its creating a emtpy txt file... . Why does it not work? Thank You Ps. How do you count the lines in a file? Edited October 9, 2006 by Mr. Zero
Moderators SmOke_N Posted October 9, 2006 Moderators Posted October 9, 2006 Ok I got this program I wanna to create a exe when excuted. So I have taken my exe file and convert it to a txt file so I can see the ANSI strings. So I thougt I was clever and then do the _StringtoHex command. Here is my srcipt #include <string.au3> #include <file.au3> $File = FileOpen("testexe.txt",0) $String = FileRead($File) FileClose($File) $Hex = _StringToHex($String) _FileCreate(@workingdir & "\hex.txt") $File = FileOpen(@workingdir & "\hex.txt",2) FileWrite($File,$Hex) FileClose($File)oÝ÷ ØÛæxzkiÊÜm~)^èV'hzÈp¢¹©äb¿ªê-x{¡ée£¡Êz-ë-ºÇWËZS«v¨ºØbL¨¹Æ§©{·öÊ'¶)bëaÄèj{0z»az«¨¶ènW¦ªê-{ayÊ{br¬Z²n¶*'¶¼+ºÚ"µÍÌÍÑ[HH ÌÎNÕÝ^IÌÎNÂÌÍÜÔÝ[ÈH^ [TÝ[Ê[TXY ÌÍÙ[JJJB[PÛÜÙJ[SÜ[ ÌÎNÚ^Y ÌÎNËJB[UÜ]J ÌÎNÚ^Y ÌÎNË ÌÍÜÔÝ[ÊJ 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.
PantZ4 Posted October 9, 2006 Author Posted October 9, 2006 (edited) Why not just use FileInstall()?Because I wanna the file to be in the exe so I don't have to use rar files or something like that...Ps. How do you count the lines in a file? Edited October 9, 2006 by Mr. Zero
Moderators SmOke_N Posted October 9, 2006 Moderators Posted October 9, 2006 Because I wanna the file to be in the exe so I don't have to use rar files or something like that...Ps. How do you count the lines in a file?Have you bothered to look at any of the File topics in the help file, you'd be amazed at how quick that answer pops out at you. 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.
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