...
You can include external script files in your VBScript and JavaScript action scripts, by inserting a comment with "USEUNIT scriptfilename" You cannot include external script files with PowerShell.
Example
...
Code Block | ||||
---|---|---|---|---|
| ||||
'USEUNIT c:\FinalBuilder\scripts\iis_stuff.vbs |
Example
...
Code Block | ||||
---|---|---|---|---|
| ||||
//USEUNIT c:\FinalBuilder\scripts\iis_stuff.js |
Note |
---|
...
The external script file must be written in the same script language as the event handler script. FinalBuilder provides sample scripts to do things such as restart IIS, shut down COM+ components, etc. |
You can also use FinalBuilder variables in the path, for example : 'USEUNIT "%SCRIPTPATH%\Test.vbs"Note that this
Note |
---|
This is the only time you would use the %variable% syntax for FinalBuilder variables in the script editor, as the useunit line is preprocessed before the script is run. |
Custom Action Studio Script Actions
Entire action types can be written in Action Studio for inclusion in FinalBuilder.
See Also
Related documentation and VBScript/JavaScript languages descriptions can also be found on the Microsoft Active Scripting site:
http://msdn.microsoft.com/scripting/
PowerShell documentation can be found at the Windows PowerShell site:
http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx
Information about IronPython can be found at the IronPython home page on Codeplex:
Global Script Functions | Accessing TStrings based Propertieshttp://www.codeplex.com/IronPython