Page 1 of 1

php exec() help needed

Posted: Tue Mar 11, 2008 11:21 am
by comeragh
Hi,
does anyone know why this wouldn't work. Everything seems in order but nothing happens.

function runCluto()
{
$command = "Z:\public_html\foldername\RunCluto.bat";
exec($command);
}
Tnx :)

Re: php exec() help needed

Posted: Tue Mar 11, 2008 11:30 am
by anto91
I think the bat file must be in the same directory as the php script (not sure ant played with bat in a long long time), also i think you should try exec('start '. $file);