EXE2BIN + Converting .EXE Files to .BIN FilesConverts an .EXE file to a .BIN file, which may be used as a
.COM file by renaming it with the .COM extension if it is in .COM
file format, or by giving a .COM extension to the second
argument.
VERSION
PC-DOS 2.0+ (revised from 1.1; none in 1.0)
MS-DOS equivalent: EXE2BIN (2.0+)
TYPE
External
SYNTAX
[d:][path] EXE2BIN [sd:][spath]sfilename
[td:][tpath]tfilename]
OPTIONS
[d:][path] Specifies the drive letter and
path that contain the EXE2BIN
command file.
[sd:][spath]sfilename Specifies the file name of the
.EXE file to be converted.
[td:][tpath]tfilename Specifies the file name of the
.BIN file to be created.
EXE2BIN is used to convert an .EXE (executable) file to a
.BIN (binary) file, which is formatted for more efficient storage
and operation.
EXAMPLE
EXE2BIN TEST.FIL TEST.COM
BEFORE: TEST.FIL
AFTER: TEST.COM
MESSAGES
Amount read less than size in header
The program portion of the .EXE file was less than the program
header indicates. Recompile or reassemble the program again; then
relink it before continuing.
Fixups needed- -base segment (hex)
The source file indicates that a load segment is required.
Specify the absolute address at which the completed .COM file is
to be loaded.
WARNING- -Read error on EXE file
An error in reading the input file occurred. EXE2BIN will
continue; however, the resulting file may not be executable.
NOTE
Only executable code that is completely relocatable in
memory and run at a specific memory location can be converted by
this command. In addition, the memory image of the .EXE file must
be less than 64K. If you do not specify an output file name, the
input file name will be used.
------------------------------------------------------------------
[For related topics, press R]
SEE ALSO
BREAK Command
COMMAND Command
CTTY Command
JOIN Command
KEYB Command
KEYBxx Command
PROMPT Command
SET Command
SUBST Command