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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Execute .bat file from jsp?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi there. I'm trying to execute a .bat file (in fact is a perl file converted to .bat with pl2bat) from a jsp. The .bat file creates some other files at disk. I use Runtime.exec to launch the bat file from the jsp, and I would like the jsp to wait until the .bat file finishes, but I don't know how. As far as I know, the exec method creates a new process (inside the JVM?) but it seems to me that when the jsp finishes, the other process does so without finishing its work. Any clues? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top