Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running external program/script

Status
Not open for further replies.

mrobinson83

IS-IT--Management
Mar 1, 2007
5
GB
Excuse my lack of knowledge, I've been landed with a program we use that can only run VBScript. I have a script in PHP that I've created that I'd like to run/call from VB.

Is it possible to call the PHP script from VBScript? If so examples would be greatly appreciated!

Thanks in advance!
 
This should run it:

Code:
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshShell.Run("php your_script.php", 7, True)
 
>wshShell.Run("php your_script.php", 7, True)
Either
[tt]wshShell.Run "php your_script.php", 7, True[/tt]
or
[tt]call wshShell.Run("php your_script.php", 7, True)[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top