Building COM files with TASM

Originally posted by wasily
I'm using tasm and I'm still writing dos code, so i'd like to use tlink.exe instead of tlink32.exe which is always used whenever I try to link my .obj ... how can I tell RADasm to use tlink.exe?

Answer from cakmak
for .com files...

if you dont care .txt file type, in your last project file (.rap)

[MakeDef]
Menu=0,1,1,1,1,1,1,1,0,0
1=4,O,$B\brcc32.exe -r -i"$I" -v,1
2=3,O,$B\tasm32.EXE /I"$I" $2
3=8,C,$B\tlink.exe /t $3 ; << notice "8" and without "," or "$"
4=0,0,,5
5=
7=0,0,C:\Program Files\OllyDebug\OllyDbg,5

and,

[MakeFiles]
0=aaa.rap
1=aaa.rc
2=aaa.asm
3=aaa.obj
4=aaa.res
5=aaa.com
6=aaa.def
7=aaa.dll
8=aaa.com ; << here is yours
9=aaa.lib
10=aaa.mak
11=aaa.hla

The same thing for .exe. Notice commandline parser. And i suggest you create a .pif file for tlink.exe, this is better.