" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#008000" VLINK="004000" ALINK="#00C000">
EXE2BIN COMMAND
Purpose: Converts .EXE files to .COM or .BIN files
Syntax: EXE2BIN [drv:][path]name1[.EXE] [ [drv:][path]name2[.BIN] ]
Type: External command
Description:
This command converts .EXE (executable ) files to binary format. If
you do not specify an extension for the first, input file, it defaults to
.EXE. The input file is converted to a .BIN file format (a memory image of
the program) and places it in the output file name2.
If you do not specify a disk or a name for the output file, the system
will use the disk and the path of the input file. If you do not specify a
filename extension in the output file name, the system gives the new file
the extension .BIN.
Some restrictions do apply when you use this command: the input file
must be in valid .EXE format; the actual code and data part of the file must
be less than 64K bytes; there must be no STACK segment definition for the
converted program.
Two kinds of conversion are possible, depending on the initial meaning
of the CS:IP.
If the CS:IP is not specified in the program (.EXE file contains 0:0),
a binary conversion takes place. If segment fixup is necessary, the system
asks for the absolute segment at which the program is to be loaded. The
resulting program will be usable only when loaded at the absolute memory
address specified by your application. The command interpreter COMMAND.COM
will not be able to load the resulting program.
If the CS:IP is 0000:0100h, the system will convert the input file to
.COM format. In this instance no segment fixup is allowed, since programs of
this type must be segment independent, when are being loaded. You can load
the converted program with the help of the command interpreter COMMAND.COM.