...
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 |
---|
...
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
...