 > q.bat echo ::
>> q.bat echo :: This batch file compiles and links your program
>> q.bat echo ::
>> q.bat echo @echo off
>> q.bat echo if [%%3]==[] goto main
>> q.bat echo if '%%1'=='[?' goto Loop
>> q.bat echo set {fn}=
>> q.bat echo set {xt}=
>> q.bat echo %echo ;|xchoice /r /c:?%%1; %%0 %> {t}.bat
>> q.bat echo {t}
>> q.bat echo ::
>> q.bat echo :Loop 
>> q.bat echo :: 
>> q.bat echo if '%%2'==']?' goto:End
>> q.bat echo if [%%2]== [] goto:End
>> q.bat echo if [%%2]==[%%sep%%] goto fsep
>> q.bat echo :second
>> q.bat echo set {xt}=%%{xt}%%%%2
>> q.bat echo shift 
>> q.bat echo goto Loop
>> q.bat echo :fsep
>> q.bat echo if not []==[%%{fn}%%] goto second
>> q.bat echo set {fn}=%%{xt}%%
>> q.bat echo set {xt}=
>> q.bat echo shift
>> q.bat echo goto Loop
>> q.bat echo ::
>> q.bat echo :main
>> q.bat echo set sep=.
>> q.bat echo if not [%%2]==[] set sep=%%2
>> q.bat echo call %%0 %%1 :: ::
>> q.bat echo set sep=
>> q.bat echo if not [] == [%%{fn}%%] goto nodup
>> q.bat echo set {fn}=%%{xt}%%
>> q.bat echo set {xt}=c
>> q.bat echo :nodup
>> q.bat echo cc386 /C+N -Ic:\CC386\INCLUDE %%{fn}%%.%%{xt}%%
>> q.bat echo if NOT ERRORLEVEL = 0 goto exit
>> q.bat echo NASM -fobj %%{fn}%%.asm
>> q.bat echo if NOT ERRORLEVEL=0 goto exit
>> q.bat echo valx -nci -use32 c:\CC386\LIB\c0dos.obj %%{fn}%%.obj,%%{fn}%%,%%{fn}%%,c:\CC386\LIB\CLDOS.LIB
>> q.bat echo :exit
>> q.bat echo set {fn}=
>> q.bat echo set {xt}=
>> q.bat echo ::set
>> q.bat echo :End