Search This Blog

Saturday, April 18, 2009

Using Borland Turbo C++ 3.0 to make a .com file

First of all we need to compile our program using TINY Memory Model. In Borland Turbo C++ 3.0 Editor, goto Options > Compiler > Code Generation > Select "Tiny" as "Model".

Now compile your program. Once successfully compiled, open command prompt and goto the directory where the TC has created the exe file. Now using Exe2Bin convert your exe file to com file.

Exe2Bin Syntax
exe2bin [drive1:][path1]InputFile [[drive2:][path2]OutputFile]

Parameters
[ drive1 : ][ path1 ] InputFile : Specifies the location and name of the input file that you want to convert. InputFile is required.

[ drive2 : ][ path2 ] OutputFile : Specifies the location and name of the output file that you want to create.

/? : Displays help at the command prompt.

Exe2Bin Common Error Messages

Borland Turbo C FAQ