Scripting techniques : binding / embedding files using codes?

元气小坏坏 提交于 2019-12-12 02:15:40

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!