.execute_vbscript Macro

This macro is used to execute a VB script specified in a separate file as part of a generation command.

.execute_vbscript (vbs-file [,script-parameter])

The following parameters are available:

Parameter

Description

vbs-file

Specifies the path to the VB script.

Type: Simple template (escape sequences ignored)

script-parameter

[optional] Passed to the script through the ScriptInputParameters global property.

Type: Simple template

Example
.execute_vbscript(C:\samples\vbs\login.vbs, %username%)
The result of the script is available in the ScriptResult global property (see Manipulating Models, Collections, and Objects (Scripting)). The active object of the current translation scope can be accessed through the ActiveSelection collection as ActiveSelection.Item(0).

For information about generation commands, see Generation Category.