问题
ok so we all know that there is some awesome tools that allow you to bind a bunch of files no matter what extensions they have into one executable file ex: EasyBinder v 2.0 , or some other allow us to embed files into another one and extract them to specific locations when the file is run (extracting them without running them) like the one in Advanced bat to exe converter , but when trying to make a script i struggle to find a way to bind or embed random files according to user input , i know it's some advanced scripting or programming techniques and maybe impossible, but the fact that there is a lot of downloadable file binders that are so basic and seem to be created using a simple gui language makes me curious .
when googling "File binders" , i found a lot of programs not even close to 1mb size, and created by some starter programmers
is there any way or any code in any scripting language that can bind files ?
waiting reply impatiently .
回答1:
This - http://consolesoft.com/p/bhx/index.html will allow you to save a binary file as a a string inside batch file with the option to extract it.
Another way is to use certutil -> http://ss64.org/viewtopic.php?id=1562
you can embed a base64 string inside batch file with -----BEGIN CERTIFICATE-----
and -----END CERTIFICATE-----
headers around the base64 string.
来源:https://stackoverflow.com/questions/29518537/scripting-techniques-binding-embedding-files-using-codes