Sign in to follow this  
Followers 0
adalric1234

Read EOF of a compiled File

4 posts in this topic

#1 ·  Posted (edited)

Hello everybody, I have a problem with autoIt, when I add an "end of file" with filewrite() to a script.au3, I am able to read it with a msgbox, but when the file is compiled (.exe), and I add a sentence in the EOF, how can I read it ? I keep gettings messages like (☐☐☐☐) when trying to read EOF. 

That would be very helpful to me. 

Thanks.

Edited by adalric1234

Share this post


Link to post
Share on other sites



Show us the code you're using to do this "add an end of file". Not sure what it is you think you're adding to the file, but I'm not sure that most files these days even have an EOF character in them, that's ancient Unix/DOS stuff.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

That's the only way to save information, from the "builder" to the 'stub", so in the builder I am using : 

$stub = "stub.exe"

FileOpen($stub)

$readstub = FileRead($stub)

FileWrite($readstub, "here the string to add in the EOF")

 

Share this post


Link to post
Share on other sites

Read the forum rules before you continue asking questions here, your request is not in line with them.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0