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
Can each java object keep track of all the threads that want to exclusively access it?
Can we sort a map in java?
how to convert mm/dd/yy to dd/mm/yy using collections in java.
What is a method in coding?
define polymorphism in java
Can you explain inner class.
What is java objectoutputstream?
What are the different tags provided in jstl?
What is boolean strategy?
What are the 3 types of control structures?
How we can run a jar file through command prompt in java?
How to prevent a field from serialization ?