Don't use "WScript.Shell". Simply use
exec("MyBatch.bat")
, or use any other executable file name. Please see:
http://php.net/manual/en/function.exec.php[
^].
Better don't use absolute paths. Use the path relative to the page. There can be another problem: HTTP servers run applications in the sandboxed environment which won't allow to access any files beyond the root directory reserved for your side. Most likely, directory like "C:\TestFolder" is not legitimate.
—SA