Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Post New Answer

More Core Java Interview Questions

How can I right-justify a string?

0 Answers   Aspire, Infogain,


What are dot operator queries?

0 Answers   Atos Origin,


What is the difference between Error, defect,fault, failure and mistake?

0 Answers   HCL,


Can the garbage collection be forced by any means?

0 Answers  


what is the difference b/w static and final methods?

1 Answers  


What is command line argument

0 Answers   TCS,


how can we import the user defined package without classpath?

1 Answers   CSC, Infosys,


Where is the find and replace?

0 Answers  


What invokes a thread's run() method in java programming?

0 Answers  


What is method overriding in java ?

0 Answers  


What are java annotations?

0 Answers  


What does indexof return in java?

0 Answers  


Categories