This is a brief tutorial on how to create and code MS-DOS applications, or .COM files.
First, you must write the program. To do this, you want to write a .BAT file in Batch, and code it how you want the COM file to work.
Second, you have to code an SED file. This is what tells the computer how to compile the .BAT file.
"TagetName" must end in ".COM".
"AppLaunched" must have "cmd /c " and end with the Batch file's name.
"FILE0" must be equal to the bat file.
"SourceFiles" must be equal to the path of both the SED and bat file.
Here is an example code below:
Code: Select all
[Version]
class=iexpress
sedversion=3
[Options]
hideextractanimation=1
TargetName=%TargetName%
AppLaunched=%AppLaunched%
PostInstallCmd=%PostInstallCmd%
SourceFiles=SourceFiles
[Strings]
TargetName=Application.com
AppLaunched=cmd /c 1.bat
PostInstallCmd=<None>
FILE0="1.bat"
[SourceFiles]
SourceFiles0=C:\Users\nitt\desktop\
[SourceFiles0]
%FILE0%=
Thirdly, load up CMD. Now navigate to the location of both of the files. Type in "iexpress /n " followed by the SED file's name. Such as "iexpress /n test.sed".
Press enter and done! You have created a .COM file! :3