问题
It is asked me to create a Windows executable (.exe) from scripts written in batch and vbscript. unluckily I don't know which tool use to realize that. Therefore Let me ask you some questions which torment my spirit
- Is it possible to make a such build?
- If it is, could you recommend me some open tools which do that?
- To make an exe from bat+vbs, do you think I have to modify the content of my scripts alot/a little?
Thank in advance for your feedback
回答1:
Bat2Exe converts batch files including any other files in a certain folder into executables
http://www.bat2exe.net
回答2:
"ExeScript Editor" can convert batch files under .bat and .cmd also it can convert .vbs and .vbscript file into a .exe
http://www.scriptcode.com/vbscripteditor/
回答3:
What you want to do is:
First : Join the bat files and vbs files together in one file.
Second: "Make" a executable of that file to launch the main bat file.
Bat/VBS file can't be compiled, when you see a "compiled bat" it's only a simple .exe stub, the bat is not compiled neither converted, is only stored, so first you need to use a joiner and second you need to use a bat-2-exe "converter" like "ExeScript Editor", searching for the crack in Google to evaluate the program is not hard, I have it.
...But really the best you can do is to use WinRAR application with the SFX options which can join files (compress), make the exe, and can launch the main bat file after silent extraction.
PS: Really the best you can do is to learn the basic things of a real lenguage, embbed the bat/vbs files as resources and then compile it into a standalone executable.
来源:https://stackoverflow.com/questions/16626028/create-a-windows-executable-exe-from-batch-and-vbscript