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 exitetc etc etc
Article ID: W14237Filename: Combining WB Scripts.txt