Click to See Complete Forum and Search --> : Execute a .bat file


Anon
09-27-2001, 10:58 AM
Hi,

I use exec function to execute one .bat file that calls anothet .bat file, but after exec the first bat nothing happens : (

Can you help me? Why this happen and how to fix? I need make the system execute the bat in the right way

Anon
02-28-2002, 06:38 PM
Did you get a solution to this problem.
I am running into the same issue.

Bhavesh
bhavesh@yahoo-inc.com

Anon
02-28-2002, 06:47 PM
I solved this calling the second bat using the \\\"start\\\" command, example:

start file.bat

This goes inside the first bat executed with the exec(), but php will return only the outputs from the first bat, on some cases is better use multiple \\\"exec()\\\" for bats that you need to recive the output to control errors or anything more