mrphp Posted April 25, 2006 Share Posted April 25, 2006 I would like to call a php script from within my vbscript.How do I do that? This isn't working...Dim objWshShell, runcommand, DBScriptPath, outputStringSet objWshShell = WScript.CreateObject("Wscript.Shell")DBScriptPath = """C:\Program Files\Path\ToScript\dbscript.php""""runcommand = "C:\ php\ php.exe " & "-q " & DbScriptPath & " " & input1 & " " & input2 & " " & input3objWshShell.exec(runcommand)outputString = objWshShell.StdOut.ReadAllWScript.Echo outputStringThe php script doesn't seem to run.MrPhp Link to comment https://forums.phpfreaks.com/topic/8330-how-to-run-php-script-from-vbscript/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.