Slapping those quick and dirty batch scripts into executable programs, one at a time...
The Batchman converts Windows batch or HTA files into compressed executable files, with the following options :
- Include files located in the folder of your file.
- Customize the icon.
- Run your executable without showing the console. (for batch files)
- If the console is hidden, add a completion feedback in the form of a dialog box. (for batch files)
The Batchman distribution is itself a HTA/JS application packaged into a nice executable file right here : Download
Simply run thebatchman.exe and fill in the form. The application will output the executable file to the same folder where your batch/HTA file resides.
- Include all the other files located in the same folder of your batch/HTA script : You can package and use any binary or other dependency in a portable way.
- Hide the console when running your executable program (Batch) : By default, running Batch scripts on Windows launches the console. Executables made with The Batchman actually run the batch script packaged inside. You have the possibility to hide the console while the executable is running.
- Add a completion feedback (Batch) :
If you choose to hide the console during the execution of your program, you might want to have a feedback to know when the script has ended.
To achieve that, The Batchman adds a label named
completion
and a few lines at the end of your batch script starting a small HTA alert box when it reaches it. So think of addinggoto completion
in your script instead ofgoto:eof
if you want this feature to work correctly. The Batchman used to parse the script and rewritegoto:eof
intogoto completion
, but it had obvious side effects with some subroutines, so it's better you do that manually.
Tested on Windows 10 x64, but should work on every Windows up to XP SP2 (x86 or x64), as long as you have Internet Explorer 8 or more recent.
- 7-zip command-line 16.02 (under GNU LGPL)
- 7-zip modified SFX modules 1.6 (under GNU LGPL)
- Anolis Resourcer 0.9 (under GNU GPLv2)
- Bootstrap 3.3.5 (under MIT)
This project is itself licensed under the terms of the GNU GPLv2 license.
This application is for "quick and dirty" purposes. Both HTA and Batch are legacy technologies, even if they're still supported on modern Windows platforms.