Scripting Integrator 2016 PHP Edition
Scripting Integrator 2016 PHP Edition
Questions / Feedback?

EvalFile Method

Execute a script file on the PowerShell runspace.

Object Oriented Interface

public function doEvalFile($path);

Procedural Interface

inscript_powershell_do_evalfile($res, $path);

Remarks

The Path parameter contains the fully qualified path of the script file to execute.

Eval Notes

When calling Eval or EvalFile any custom functions must first be defined by calling AddFunction. When the function is encountered the Function event will fire. Within this event query the Parameters collection to get the function parameter values. The return value of the custom function is defined within the Function event.

Any errors such as undefined functions or other issue will cause the Error event. Errors will not cause an exception. It is important to monitor the Error event for information about any errors that occur.

The return value from Eval or EvalFile is the output from successful execution of the JavaScript.

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
Scripting Integrator 2016 PHP Edition - Version 16.0 [Build 7240]