Home > Commands A-M > Commands E

EXE2BIN


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

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.


Syntax

EXE2BIN [drive:][path]filename [drive:][path]filename


Parameters
drive: ( path filename v5.0 NT3.5)
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.

Switches

none.


Related

none.


Notes

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.


Examples

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

    EXE2BIN CHECK.EXE CHECK2.BIN

Errorlevels

none.


Availability
External
DOS
v1.0 v1.05 v1.1 v1.11 v1.24 v1.25 v1.85 v2.0 v2.01 v2.05 v2.10 v2.11 v2.11R v2.12 v2.2 v2.25 v3.0 v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02
Windows NT
NT3.5 NT4 NT2000
External Supplemental disk
DOS
v6.0
Windows
none
Windows NT
none