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
Which package is always imported by default?
How to make a class or a bean serializable?
How do you identify if jvm is 32-bit or 64-bit from java program?
What is the difference between overriding and overloading in OOPS.
0 Answers Axtria, ITC Indian Tobacco Company,
What is exception hierarchy in java?
What is class forname?
Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..
What are wrapper classes in java?
Name the types of mouse event listeners ?
What is the difference between post and put?
Is alive and join method in java?
Is java a pure object oriented language?