Computer and Software Support


DOS Command exe2bin

Type: External (1.1 and later)

Syntax:

EXE2BIN [d:][path]filename [d:][path]filename

Purpose: 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. (In DOS Version 6, this program is stored on the DOS supplemental disk.)

Discussion

The first file specification you enter is to indicate the source file. If you don`t enter a filename extension, the program assumes an .EXE extension.
The second file specification you enter is to indicate the new file that will be created using the .BIN format (sometimes referred to as a memory image of the program). If you do not enter a filename, EXE2BIN will use the same filename as the source file. If you do not specify a filename extension, the program will assign the .BIN extension.

The input file must be in valid .EXE format as produced by the MS-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.

Example

To convert the file CHECK.EXE to binary format and rename the file CHECK2.BIN, enter

exe2bin check.exe check2.bin
 

This page is from http://www.easydos.com. I pasted it on my website to avoid possible broken links. For further help with DOS commands, Check easydos.com out.