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
Is overriding possible in java?
What is variable explain with example?
How many wrapper classes are there in java?
What is the difference between and ?
Can we clone singleton class in java?
Can we add default constructor to Servlet?
Is object a data type in java?
What is meant by memory leak?
How do you use wildcards?
What is a local block?
Is main an identifier?
Which oo concept is achieved by using overloading and overriding?