exe2bin(CMD) 19 June 1992 exe2bin(CMD) Name exe2bin - convert EXE ecutable) files to binary format Syntax exe2bin [drive1:][path1]input-file [[drive2:][path2]output-file] Description exe2bin is included with MS-DOS as a courtesy to software developers. It is not useful for general users. Parameters [drive1:][path1]input-file Specifies the location and name of the input file. [drive2:][path2]output-file Specifies the location and name of the output file. Notes Restrictions on using exe2bin The following restrictions apply when you use the exe2bin command: + The input file must be in valid .EXE format produced by the linker and must not be packed. + The resident, or actual, code and data portions of the file combined must be less than 64K. + There must be no STACK segment. Default values for parameters exe2bin takes specific actions, depending upon the values you use for the input-file and output-file parameters. + The default filename extension for the filename you specify for input-file is .DZE. exe2bin converts the input .EXE file to an output file in .BIN format (a memory image of the program) and uses the loca- tion and filename you specify for [drive2:][path2]output-file to store that output file. + If you do not specify drive2 or path2, exe2bin writes the output file to the current drive and directory. + If you do not specify an output filename, exe2bin uses the input filename. + The default extension for the filename specified for the output-file parameter is .BIN. Types of conversion available with exe2bin Two types of conversion are possible, depending upon whether the initial CS:IP (Code Segment:Instruction Pointer) is specified in the .EXE file. The following list presents the two types: + If the CS:IP is not specified in the .EXE file, exe2bin performs a pure binary conversion. If segment fixups are necessary (that is, if the program contains instructions requiring segment relocation), exe2bin prompts you for the fixup value. This value is the absolute segment at which the program is to be loaded. The resulting program is usable only when loaded at the absolute memory address specified by your program. The command interpreter cannot load the program. + If the CS:IP is specified as 0000:100H, the file runs as a .COM file with the instruction pointer set at 100H by the assembler statement org. Include the .COM extension in the output-file parameter. No segment fixups are allowed, because .COM files must be segment- relocatable; that is, they must assume the entry conditions explained in the Microsoft Macro Assembler manuals. The command interpreter can then load and run the program in the same way as it loads and runs the .COM programs supplied on your MS-DOS disk.