Create a Windows executable (.exe) from Batch and Vbscript

删除回忆录丶 提交于 2020-01-04 06:24:23

问题


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

  1. Is it possible to make a such build?
  2. If it is, could you recommend me some open tools which do that?
  3. 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

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