aspose file tools*
The moose likes Servlets and the fly likes getRuntime().exec() from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getRuntime().exec() from servlet" Watch "getRuntime().exec() from servlet" New topic
Author

getRuntime().exec() from servlet

Yogesh Gaikwad
Greenhorn

Joined: Feb 26, 2005
Posts: 15
how to use Runtime.getRuntime().exec("bat file name"); from servlet deployed on tomcat 5.0?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It looks like you've got it.
What's got you stumped?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
osman cinar eren
Ranch Hand

Joined: Jan 25, 2005
Posts: 78
hi

you may try

.exec("cmd.exe bat_file_name");


SCJP/SCWCD
Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
Try

http://www.javaalmanac.com/egs/java.lang/Exec.html

http://www.javaalmanac.com/egs/java.lang/ReadFromCommand.html?l=rel

J.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: getRuntime().exec() from servlet