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 is Collections API?
Why string is a class?
To what value is a variable of the Boolean type automatically initialized?
What all access modifiers are allowed for top class ?
For technical interview question please sir send me because tomorrow my interview
Explain java code for recursive solution's base case?
What is the default modifier in Interface?
Why generics are used in java?
Explain the difference between private, public, package and protected in java?
How do you clear a method in java?
What is string pooling concept?
What does %4d mean in java?