I run the following on my page:
$result = exec("cmd /c d:\dir1\dir2\dir3\run.bat param",$lines,$errcd);
The batch file (run.bat) does run and processes many file management tasks (like copying, moving and deleting files), but the execution stops (no error returned) at the following line in the batch file:
my.exe -parameters
The batch file alone works fine when run from the server's command line. Other batch file lines before the problem one run fine, but no line after is executed.
I am thinking that when the batch file passes control to my.exe that php thinks the batch file is done. Is there any way to avoid this??
Thanks.