Francis Lennert (France) Posted November 5, 2005 Share Posted November 5, 2005 Hello all, I would like to create a little "EXE" with two things in the same file : 1. the GUI 2. The Data I would to send this little program to users which will : - Write Data with the Gui - Click on the "Ok" Button And then, put the data in the "EXE" files. Like that, the user will just have to send back the program to me. The main thing will be also, for me, to take back the data from the "EXE" that I will receive. Well, I hope that my explanations are (at minimum) clear. Any Ideas ? Thanks for help Francis :"> Link to comment Share on other sites More sharing options...
SlimShady Posted November 5, 2005 Share Posted November 5, 2005 You can't write in the compiled script, the executable. You will need to use the registry (RegWrite) or write to an INI file (INIWrite). And use default data if the keys don't exist. Link to comment Share on other sites More sharing options...
Confuzzled Posted November 5, 2005 Share Posted November 5, 2005 Seems like a waste to get back the EXE as well as the data. Why not just send back the data? Writing self-modifying exe files is akin to writing trojans or viruses - frowned on in most polite circles. I suggest you carefully consider if that is really what you want to do. Link to comment Share on other sites More sharing options...
Francis Lennert (France) Posted November 5, 2005 Author Share Posted November 5, 2005 Hello again,We develop software for human ressources head hunters. So, time by time, the head hunters would like to send by email to their candidates the informations which are in their Mysql Databases.Like that, the candidate can update his CV (which is in the email) with their new experiences and send these informations back to the users of our application.At 44 yo, I can't be a trojan specialist FrancisSeems like a waste to get back the EXE as well as the data. Why not just send back the data?Writing self-modifying exe files is akin to writing trojans or viruses - frowned on in most polite circles. I suggest you carefully consider if that is really what you want to do. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 5, 2005 Moderators Share Posted November 5, 2005 You could always look at command parameters in the help file. 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...
LxP Posted November 6, 2005 Share Posted November 6, 2005 Hi Francis,Is there a particular benefit to storing the data in the EXE that I've missed? I ask this because I can think of a few disadvantages to this method:Virus scanners/firewalls will flag the file as bad (as already mentioned); andThe file to be sent back will be much greater in size than the data itself (most likely).One advantage that I can see is that if you need to send initial data along with the EXE, you will only need to send one file -- however you could simply compile the initial information into the script and have them send back a different file (created by the EXE after the user saves his/her changes).This may be better suited to something web-based like Perl or PHP. If that is an option, it would be worth pursuing because then there will be no need to send files back and forth at all. 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