Passing Parameters Between WinBatch Script Files

 

You can pass command line parameters from one WinBatch script file to another WinBatch script file. To do this, place percent characters (%) around the variables as in: %variable%.

 

Example:

 

The first WBT calls a second WBT then passes three parameters.

 

Call("test.wbt", "Fred Becky June")

 

TEST.WBT contains the following line:

 

Message("Names are", "%param3% %param2% %param1%")

 

which produces:

 

image\13_parm_shg.gif

 

 

Parameters

Displaying Passed Parameters in a Message Box

Writing a Script

Menu Files

Ways to run WinBatch Scripts