• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to execute batch file

 
BHAVESH SHA
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
i have frame work where user enters new rules from frontend (RMA)
now i have to go to consolle and precompile it for futher excution ,
now I dont want to repeat this precompiling step again and again but i want to make a batch file and execute from frontend rather going to console.

kindly suggest me


thanks
regards
bhavesh
[ June 07, 2007: Message edited by: BHAVESH SHA ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"LION TIGER",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted, often without warning

thanks,
Dave
 
Sunil Dixit
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi BHAVESH,
You can do that in JAVA, you can execute any exe or bat or any other executable files using your JAVA code.It is peice of cake,only thing you have
to do, get the RunTime object using Runtime.getRuntime() method. Than you can use that object to execute any executable file.
If you want more details about this class
use http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
hope that this will help you.

Cheers,
Sunil
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!