Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Combining Winbatch Scripts

Keywords:   merging scripts

Question:

I have three winbatch scripts that I would like to combine into one. How would I do this so each could be addressed? Maybe a command line parameter?

Answer:

Depends.

Something like:

if param0==0
Message("EEEK","Must pass routine name")
exit
endif

param1=strupper(param1)
if param1=="BOSCO" then goto bosco
if param1=="CALC" then goto Calc
if param1=="ADD" then goto add
Message("EEEEK","Unrecognised routine name")

:BOSCO
Message("HI","Bosco here")
exit

:CALC
a=param2+param3
exit
etc etc etc
Article ID:   W14237
Filename:   Combining WB Scripts.txt