Page 1 of 1

exec() to execute bat file.

Posted: Wed Aug 26, 2009 7:06 pm
by sobha
Hi

I used echo exec('C:/start.bat'); to execute the batch file.But it is not showing the output.

Please help.

Regards,
Sobha

Re: exec() to execute bat file.

Posted: Wed Aug 26, 2009 7:13 pm
by requinix
Creating a thread every time your question changes a little bit is really annoying.

exec
Return Values

The last line from the result of the command.
Oftentimes on Windows there's a final blank line after a program executes...

Re: exec() to execute bat file.

Posted: Wed Aug 26, 2009 7:18 pm
by sobha
I used echo exec('C:/start.bat'); to execute the batch file.But it is not showing the output.
But just displaying a blank page.

Re: exec() to execute bat file.

Posted: Wed Aug 26, 2009 7:52 pm
by requinix
Lemme try again.
tasairis wrote:Creating a thread every time your question changes a little bit is really annoying.

exec
Return Values

The last line from the result of the command.
Oftentimes on Windows there's a final blank line after a program executes...