Saturday, June 12, 2010

How to make a bat executable?

How to make a bat executable?

Question:
How to make a bat executable?
Answer:
A .BAT file can very easily be made into a .EXE or .COM file. This can help give you additional abilities such as file versions and keeping the program hidden from the user and/or keep the source of the batch file hidden from the user. We recommend users use thebat_to_exe_converter file to convert their batch files. This utility is free and can be found on our utility download page.
Once this file has been downloaded unzip the file and double-click the bat_to_exe_converter.zip file to open the program. Within this program you'll be able to point to the batch file you wish to convert into an executable file, include additional files, change the icon of the file, and add addition details such as the file version, company, copyright, etc.
* If you want to keep the file hidden from the user to prevent them from closing it before the file can be completed make sure sure to check the Ghost application option. However, make sure all pause statements are removed from the batch file or it will remain in memory as b2e.exe.
Alternative solution
In addition to the above solution for users running earlier versions of MS-DOS and windows can use the bat2exe.com file, which is program that converts your batch files into a .com file. Which is executable and also impossible for a user to view the contents or commands ran in the batch file. This utility can also be found on our utility download page.
Once the file has been downloaded move the file into the same directory as your batch file and type a command similar to the below example.
bat2exe myfile.bat

No comments:

Post a Comment