autoitfreaky Posted November 20, 2010 Posted November 20, 2010 Hello everybody I want to add an Batch file to my script, with the function: ResourceSaveToFile... I can add a zip file with: #AutoIt3Wrapper_Res_File_Add=Install.zip, rt_rcdata, ZipData And i can add a bitmap picture with: #AutoIt3Wrapper_Res_File_Add=SetupPicture1.bmp, rt_bitmap, SetupPicture1 But i don't know how to add a Batch file! Can someone help me out??? Thanks! Kind Regards, Thommy
SadBunny Posted November 20, 2010 Posted November 20, 2010 Consider just putting the batchfile in a string since it is plain text anyways. That way you have way more control over what the batchfile does and you can ask the user where he wants it stored, or determine in the script where you want it saved (for instance, make the directory variable). And I don't know what your intention is ofcourse but the occasions where I wanted to include a batchfile in a script it was usually very useful to "generate" the batch code from within to be able to work with different installation dirs, user input etc. You can always use FileInstall too, I guess. Roses are FF0000, violets are 0000FF... All my base are belong to you.
autoitfreaky Posted November 20, 2010 Author Posted November 20, 2010 Consider just putting the batchfile in a string since it is plain text anyways. That way you have way more control over what the batchfile does and you can ask the user where he wants it stored, or determine in the script where you want it saved (for instance, make the directory variable).And I don't know what your intention is ofcourse but the occasions where I wanted to include a batchfile in a script it was usually very useful to "generate" the batch code from within to be able to work with different installation dirs, user input etc.You can always use FileInstall too, I guess.Thanks for your reaction, SadBunny!I used FileInstall, and it works great!
Zedna Posted November 20, 2010 Posted November 20, 2010 But i don't know how to add a Batch file! It should work the same way as ZIP file. #AutoIt3Wrapper_Res_File_Add=Install.bat, rt_rcdata, BatData Resources UDF ResourcesEx UDF AutoIt Forum Search
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