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 does not contain pointers?
what is for datainputstream?
When abstract methods are used?
what is object deep copy and shallow copy and why it is required?
What is an object class?
Which are different kinds of source code?
What is meant by polymorphism?
Can we define constructor in inner class?
What are Font and FontMetrics classes?
why are there separate wait and sleep methods? : Java thread
Is 64bit faster than 32 bit?
How do you test a method for an exception using junit?