Exe2bin


The command-line tool exe2bin is a post-compilation utility program available on MS-DOS and other operating systems.

Overview

Early compilers and linkers for the MS-DOS platform could not produce a COM file executable directly. Instead, the compilers would output an EXE-format file with relocation information. If all 8086 segments were set to be identical in such an EXE file, then exe2bin could convert it to a COM file.
exe2bin could also be used to convert compiled code to make it suitable to be embedded in ROM as part of BIOS or a device driver.
The command is available in MS-DOS versions 1 through 5. It is available separately for version 6 on the Supplemental Disk. The program was also distributed with many language compilers for MS-DOS in the 1980s, and included with certain versions of IBM PC DOS.
PhysTechSoft & Paragon Technology Systems PTS-DOS, Digital Research DR DOS 6.0, and Datalight ROM-DOS, also include an implementation of the command.
The command is also available in FreeDOS. This implementation is licensed under the Sybase Open Watcom Public License.
Windows XP and later versions include exe2bin and other 16-bit commands for the MS-DOS subsystem to maintain MS-DOS compatibility. The 16-bit MS-DOS subsystem commands are not available on 64-bit editions of Windows.