how to execute batch file from
java i have tried with below sample.butwhen i execute this sample no output is comming.please tell me where the problem is
public class bat
{
public static void main(
String args[]) throws Exception
{
Runtime r=Runtime.getRuntime();
System.out.println("Before executing batch file");
Process p=r.exec("d:\\puvvada\\servlets\\a.bat");
System.out.println("after executing batchfile");
}
}