autoitfreaky 0 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 Share this post Link to post Share on other sites
SadBunny 131 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. Share this post Link to post Share on other sites
autoitfreaky 0 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! Share this post Link to post Share on other sites
Zedna 279 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 Share this post Link to post Share on other sites