WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:10:26:11:22:42
Last Updated: 1999:10:26:11:22:42