Converts files from .EXE format to binary format. This results in files that require less disk space and may also result in a faster loading file.
EXE2BIN [drive:][path]filename [drive:][path]filename
The input file must be in valid .EXE format as produced by the DOS file linker. The resident, or actual code and data part of the file, must be less than 64K bytes. There must be no STACK segment. Two kinds of conversion are possible depending on the specified initial CS:IP:
If CS:IP is not specified, a pure binary conversion is assumed. If segment fixups are necessary (the source program contains instructions that require segment relocation), the program will display
Fixups needed - base segment (hex): Execution may be continued by typing a legal hexadecimal number and pressing the Enter key.
If CS:IP is specified as 100H, EXE2BIN assumes the file will run as a .COM file with the location pointer set at 100H by the assembler statement ORG (the first 100H bytes of the file are deleted). In this case, no segment fixups are allowed, since .COM files must be segment relocatable.
To convert the file CHECK.EXE to binary format and rename the file CHECK2.BIN, enter:
EXE2BIN CHECK.EXE CHECK2.BIN