Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagevb
titleVBScript
'USEUNIT c:\FinalBuilder\scripts\iis_stuff.vbs

Example

...

Code Block
languagejs
titleJavaScript
//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

...

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

...