Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run bat file

Status
Not open for further replies.

mossie49

Programmer
Joined
Nov 19, 2003
Messages
1
Location
IE
new to jsp, need to open jasperedit from jsp. I have a bat file that will do it. Does anyone know an easy way to run a bat file jsp. jasperedit doesn't have an exe, I use ant (ant run) to open jasperedit.
 
This line will shell out to the OS and execute anything that you could execute from the native os (ie ant, a bat file, an exe etc).

Process p = Runtime.getRuntime().exec("C:\somewhere\mybatfile.bat");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top