Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 30, 2006, 9:12 pm
rate this thread
Re: php function to call vbs
You can use COM class. It allows you to instantiate an OLE compatible
COM object and call its methods and access its properties.
$VBScript = new COM("MSScriptControl.ScriptControl");
$VBScript->Language = "VBScript";
$VBCode = ""; //your vbscript here
$input = $VBScript->Eval("getInput()");
$Shell = new COM("WScript.Shell");
$Shell->Popup($input, '', '', '');