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
What about anonymous inner classes in java?
how to print hello world every second till i have pressed enter key ???
What is return code?
Can I override protected method in java?
In treeset we add same object ...what will be the out put
What is an example of a boolean?
Is 64bit faster than 32 bit?
Which is bigger double or float?
Which class has no duplicate elements?
What is the difference between state-based unit testing and interaction-based unit testing?
Can we declare the main method of our class as private?
What is “try and catch” in java