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

DOS

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

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
File Created: 1999:04:15:16:50:22
Last Updated: 1999:04:15:16:50:22