To display the total number of command line parameters, use param0 as a variable in a message box. WinBatch works like the DOS Batch language to put parameters into text. Enclosing them in percent (%) signs works in WinBatch, too.
This example is a simple one line WinBatch function that:
The Message function has this form:
Message("title in quotes","message in quotes")
The actual statement used to produce this dialog box was:
Message("%param0% Parameter(s)", "The first was==> %param1%")
It produced:
The command line which produced the statement above was:
Note: Full path names were used for both the WinBatch executable file and for the WinBatch utility. Spaces separate the three parts of the command line.
|
|