Chapter 9 Generation Reference Guide (GTL)


execute_vbscript macro

This macro is used to execute a VB script specified in a separate file.

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

Parameters

Parameter Type Description
<vbs-file> Simple template (escape sequences ignored) VB script file path
<script-parameter> (optional) Simple template Parameter passed on to the script through the ScriptInputParameters global property

Output

The output is the ScriptResult global property value.

Example:

.execute_vbscript(C:\samples\vbs\login.vbs, %username%)

Note: the active object of the current translation scope can be accessed through the ActiveSelection collection as ActiveSelection.Item(0).

For more information on ActiveSelection, see "Global properties" in the "Accessing objects using VBScript" chapter in the General Features Guide .

 


Copyright (C) 2005. Sybase Inc. All rights reserved.