ph_runscript_0 PowerHome formula function
Description
Executes a WSH (Windows Script Host) file.
Syntax
ph_runscript_0 ( timeout, filespec, name )
Argument | Description |
timeout |
Integer. Timeout. Specifies the time in milliseconds after which the user will be presented with an option to continue or discontinue execution of the script. A value of –1 means the script will never timeout. A value of 0 will fire the timeout event when it is detected that the script is hung. |
filespec |
String. The full path and filename of the WSH file you wish to execute. |
name |
String. The function or subroutine which should be executed. |
Return value
String. Returns the output of the called function or the text of an error.
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_runscript_0(0,"C:\powerhome\web\WthrImgs\weather.vbs","main")