Re: php function to call vbs
- From: "lorento" <laurente1234@xxxxxxxxx>
- Date: 31 May 2006 01:35:21 -0700
drec wrote:
I am just getting my feet wet in php. Is there any way to execute a
vbscript file through using a php command? Or in other words, have a
php script call a vbs file.
You can use COM class. It allows you to instantiate an OLE compatible
COM object and call its methods and access its properties.
<?php
$VBScript = new COM("MSScriptControl.ScriptControl");
$VBScript->Language = "VBScript";
$VBCode = ""; //your vbscript here
$VBScript->AddCode($VBCode);
$input = $VBScript->Eval("getInput()");
$Shell = new COM("WScript.Shell");
//run
$Shell->Popup($input, '', '', '');
?>
regards,
Lorento
--
http://www.mastervb.net
http://www.padbuilder.com
.
- References:
- php function to call vbs
- From: drec
- php function to call vbs
- Prev by Date: Re: [OBFUSCATING] From $20 to $300 ??
- Next by Date: Re: Help with php to MySql...
- Previous by thread: php function to call vbs
- Next by thread: MySQL_connect() working in PHP4 not in PHP5?
- Index(es):
Relevant Pages
|