Yes, I have tried that... and had some strange results.
It would not run the batch file, but copied the real path of where my php file is into the HTML page and with nonsense after.
Test.bat contained
echo test
c:\winnt\system32\notepad.exe
and the resulting HTML page displayed, something like
"c:\documents\php\?sbejhj"
Tried this on both NT and 2K.
Cheers,
Paul.
JB Lallement wrote:
Hi,
You're running windows. Did you tried:
exec("\winnt\system32\test.bat");