Código PHP:
import java.io.*;
public class CmdExec {
public CmdExec(String cmdline) {
try {
String line;
Process p = Runtime.getRuntime().exec(cmdline);
BufferedReader input = new BufferedReader(new InputStreamReader
(p.getInputStream()));
InputStreamReader(p.getInputStream()));
input.close();
}
}
catch (Exception err) {
err.printStackTrace()
}
public static void main(String argv[]) {
CmdExec conv = new CmdExec("c:\\pdfToHtml\\prueba.bat");
}
}