The script task allows you to run a script that you have created. Scripts that typically run under the Windows command prompt are supported, e.g., batch files, VBS (Visual Basic Script), or JVS (Java Script).

Script

You can create a script with ibaDatCoordinator or open an existing script using the browser button. If the code is known, ibaDatCoordinator highlights the syntax. To use the script in ibaDatCoordinator, you must save it in an accessible location.

Execute

You can use iba-specific arguments in the script by entering them in the argument line. The parameters (%f, %g, or %h) in the argument line refer to the last processed .DAT file or the last output file from a previous task; the file used depends on the selection in ibaDatCoordinator. The following arguments are available:

  • %f: entire file path and file name

  • %g: entire file name without path

  • %h: prefix of the filename without path and extension

To use multiple arguments, enter them one after the other, separated by a space, in the argument line.

Example: Batch script

If you want to include the arguments %f and %g in your script, enter the following in the argument line: %f %g

You can then pass the arguments in the script:

set "Para1=%1"

set "Para2=%2"

You can test the script by selecting a DAT file using the browser button or entering the path. To start the test, click on .

The test run of the script can be performed either on the server or client side. The execution on the client side may be helpful for debugging, as an interactive effect with the desktop is possible.