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 are the types of statement? explain
What does sizeof return?
What is variable length arguments in java?
What is a singleton class? Give a practical example of its usage.
What is boolean logic?
What does arrays sort do in java?
What is compiler and what its output.
How do you override a method?
What is consumer interface?
What is the method overriding?
what is the use of clone method? why user cant overwrite in sub class without its proper defination.
Explain about automatic type conversion in java?