Wilson WindowWare Tech Support

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


Passing Parameters Between a WBT and a DOS Batch File

Keywords:  passing parameters DOS batch files 

Question:

How do I pass parameters between WinBatch and a DOS Batch file?

Answer:

Here's the WinBatch script:

        a="Fred"
        b="Sally"
        c="123.456"

        xxx=strcat(a," ",b," ",c)

        Runwait("zing.bat",xxx)

or...


        RunWait("zing.bat", "%a%  %b%  %c%")

Here's the DOS batch script:

REM ZING.BAT

        echo First parameter %1
        echo Second Parameter %2
        echo Third Parameter %3
        echo Fourth Parameter %4
        pause


Article ID:   W12894
Filename:   Passing Parameters from WBT to DOS Batch.txt