public class BatchTest
{
public static void main(String[] args)
{
Runtime run = Runtime.getRuntime();
try
{
Process p = run.exec("cmd start /c
D:/test.bat");
System.out.println(p.exitValue());
}
catch (Exception e)
{
e.printStackTrace();
}
System.out.println("FINISHED");
}
}
No Answer is Posted For this Question
Be the First to Post Answer
Why java is used everywhere?
What is off heap memory?
Difference between an argument and a parameter?
10 Answers Accounting, HCL, IBM, Quinnox,
Difference between abstract and concrete class ?
What is r * in math?
What is * argv?
what is use of business objects?
What is an example of character?
How do you insert a line break?
What does java se mean?
What are the parameters used in Connection pooling?
describe method overloading