__import

Method of IScriptApplication

Dynamically import file into global scope.

Return Value

JavaScript

var pbSuccess = ScriptApplication.__import(strPath, bOnce);

Visual Basic Script

pbSuccess = ScriptApplication.__import strPath, bOnce

C++

VARIANT_BOOL bSuccess;
HRESULT hr = ScriptApplication.__import(strPath, bOnce, &bSuccess);