Originally Posted by Raphael
That is a great idea. I tried it and it creates the .bat file with no problems. I can run the .bat file from the command line and it works. However, the shell_exec(<filename.bat>) still won't work. I get this error:
CScript Error: Loading your settings failed. (Access is denied. )
Sounds like an ownership issue.
One thing to test, is on the command line launch the PHP directly by executing
php -f /path/to/your/php/script.php
, and seeing what that does. That should use your user credentials to execute the php script which in turn should use the same credentials when launching the shell_exec.
Try that and let us know how it turns out.
I like the bat idea as well, simple and central.