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

How to call an .exe file from a jsp page  RSS feed

 
Vikas Kaushik
Ranch Hand
Posts: 46
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i call a .exe file from inside a jsp page.
Vikas Kaushik
Sun Certified Programmer for Java2 Platform
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the standard Java class Runtime. The following code:
Runtime.getRuntime().exec("foo.exe")
Should be what you're looking for. Of course, you'd have to do this in a scriptlet, but I'm hoping you knew that
Kyle
 
Vikas Kaushik
Ranch Hand
Posts: 46
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot ,Sir, for the reply.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!