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 a class be private or protected in java?
Is heap stored in ram?
What is a singleton puppy?
Can a serialized object be transferred via network?
Is string serializable in java?
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
Can we create a constructor in abstract class?
Does garbage collection occur in permanent generation space in jvm?
How to convert string to byte array and vice versa?
Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?
What is local declaration?
What does i ++ mean in Java?