RDKamikaze Posted October 8, 2010 Author Posted October 8, 2010 AWESOME!!!!!!!! Can I have the files NOT be extracted in other places and have them just floating inside the AutoIt .exe and be accessed that way? This will essentially make it one .exe file that has all the stuff I need (not much) and thus 100# portable
Calistoga Posted October 8, 2010 Posted October 8, 2010 Unfortunately you would have to extract the file from the exe, the FileInstall() function allows you to pack whatever you want with the exe, but before using those resources you would have to extract them to e.g. the @TempDir. It is actually possible to bundle files 100% without extracting them, that would however require a different approach. The downside of this is that you can not execute a .bat script when it's inside the exe. CMD would whine about not finding the file etc If cmd.exe was as cool as Autoit, you could imagine just loading the bat from the exe into the computer RAM, and from there just throw the memory at cmd.exe So to sum up, - Include the file in the script using FileInstall() - Compile - Run the script - Extract the file somewhere using the same FileInstall() - Do something with the file - Delete the file
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