Codice PHP:
$descriptorspec = array(
   
=> array("pipe""r"),  // stdin is a pipe that the child will read from
   
=> array("pipe""w"),  // stdout is a pipe that the child will write to
   
=> array("file""error-output.txt""a"// stderr is a file to write to
);
$res=proc_open("./file.bat"$descriptorspec$pipes);
echo 
$res;
proc_close($res); 
sei comunque sicuro che il file file.bat sia nela directory principale?