I can think of several valid reasons to compile, or actually package scripts:
Note that some packagers (e.g. Perl2Exe) include a (copy of your) script interpreter in their executable, while others (e.g. Microsoft's Script Encoder) may still require an interpreter to be installed on the target system.
As for PowerLocker and Microsoft's Script Encoder, they aren't packagers or compilers,
really.
I included them because they can hide source code from prying eyes, which is the most
common reason for using a packager.
Don't use the script encoder to protect administrators' passwords, or rather: don't
ever use administrators' passwords hardcoded in your scripts, after all there
seem to be several script decoders around...
Also note that most anti-virus software doesn't "like" compiled scripts.
On my own computer, compiled scripts are the most common source of
"false positives".
| Batch File Compilers | |||
|---|---|---|---|
| Product | Programmer / Manufacturer | Download | Purchase |
| Bat2Exec | Doug Boling | Freeware | |
| BatLite | Pieter A. Hintjens | Freeware | |
| BFC (Batch File Compiler) | Brandon Dargo | ||
| BFC Commercial | Brandon Dargo | N/A | |
| BFC Professional Edition | Brandon Dargo | ||
| ExeScript | Hide Folder Software | ||
| IExpress | Microsoft | Native in XP | Free |
| PowerBatch | Computing Systems Design, Inc. | Shareware | |
| Quick Batch File Compiler | Abyssmedia.com | N/A | |
| Note that batch compilers may not always
understand all the magic you are performing in your batch files
(packagers use the standard interpreter, so no problem there,
other than batch file compatibility with Windows versions).
Use standard commands only, if possible, and forget about
undocumented DOS features. Batch File Compiler and Quick Batch File Compiler offer both Win32 and DOS6 compilation and handle NT's extended command switches very well, ExeScript (packager) can handle batch files for the default command interpreter (NT's CMD.EXE) only, and Bat2Exec, BatLite & PowerBatch are for "real" DOS only. I still need to test IExpress (most likely will require XP SP2 to run). |
|||
| Java Compilers | |||
| Product | Programmer / Manufacturer | Download | Purchase |
| JEXECreator | UCWare | ||
| JScript Compilers | |||
| Product | Programmer / Manufacturer | Download | Purchase |
| ExeScript | Hide Folder Software | ||
| Script Encoder | Microsoft | Free (validation required) |
|
| KiXtart Compilers | |||
| Product | Programmer / Manufacturer | Download | Purchase |
| Kix2Exe | Senser | Freeware | |
| Perl Compilers | |||
| Product | Programmer / Manufacturer | Download | Purchase |
| Perl2Exe | IndigoStar Software | ||
| PowerShell Encrypters | |||
| Product | Programmer / Manufacturer | Download | Purchase |
| PowerLocker Community version | PowerLocker | Free (if you deselect the CD in the order form) |
|
| PowerLocker Pro | PowerLocker | ||
| Rexx Compilers | |||
| Product | Programmer / Manufacturer | Download | Purchase |
| Open Object Rexx | ooRexx.org | Royalty-free (CPL v1.0) |
|
| Rexx/Wrapper | SourceForge.net | Freeware (GNU GPL) |
|
| Rexx2Exe (for OS/2) | Dennis Bareis | Freeware | |
| Rexx_Exe (for OS/2) | Veit Kannegieser | Freeware | |
| REXXCC (for OS/2) | Bernd Schemmer | Freeware | |
| RXCLS (for OS/2) | Steven Higgins | Shareware | |
| VBScript Compilers | |||
| Product | Programmer / Manufacturer | Download | Purchase |
| ExeScript | Hide Folder Software | ||
| IExpress | Microsoft | Native in XP | Free |
| Script Encoder | Microsoft | Free (validation required) |
|
| Vbs2Exe | Enkeladress.com | ||
| VBScript2Exe | Studio Catapano | ||