Code: Select all
<?PHP
$arg ='sometext';
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run("externalprogram.bat $arg", 7, false);
// contents of externalprogram.bat
//@C:\php\php.exe -q process.php?sometext=%1
?>
By experimentation I can't get this to work. I would appreciate some advice.
Kind regards, Andrew