The WIL Tutorial
|
WIL utilities run like any other Windows programs. They can run from a command line, a shortcut, or from a file listing such as the Windows Explorer. WIL utilities are usually run as files with the extension .WBT. When some WIL utilities are used, they need information passed to them when they run. This is easily done by passing command line parameters to them. This capability can be used from the command line in Start… Run menu. An example dialog is shown below. Parameters can be also be passed through the command line entry included in the item properties of any shortcut icon. Finally, an application can send parameters to a WIL utility it launches from a command line or from a function in a macro language. A command like this runs a WinBatch system utility from a command line or an icon:
WinBatch.EXE filename.wbt param1 param2 ... param[n]
This command line can be entered into a Command Line text entry box like this one from the task bar (Start..Run):
The command line is longer than the dialog can show, but it can be easily edited with the arrow keys. "filename.wbt" is any valid WBT file, and is a required parameter.
"param1 param2 ... param[n]" are optional parameters to be passed to the WBT file on startup. Each is delimited from the next by one space character.
Parameters passed to a WBT file will be automatically inserted into variables named param1, param2, etc. The WinBatch utility will be able to use these. An additional variable, param0, gives you the total number of command-line parameters.
|