Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getRuntime().exec() from servlet  RSS feed

 
Yogesh Gaikwad
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to use Runtime.getRuntime().exec("bat file name"); from servlet deployed on tomcat 5.0?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you've got it.
What's got you stumped?
 
osman cinar eren
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

you may try

.exec("cmd.exe bat_file_name");
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!