Jump to content

Batch file to my script


Recommended Posts

Hello everybody :graduated:

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! :D

Can someone help me out??? :(

Thanks!

Kind Regards,

Thommy

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...