aspose file tools*
The moose likes Servlets and the fly likes Batch file and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Batch file and JSP" Watch "Batch file and JSP" New topic
Author

Batch file and JSP

Manjunatha HA
Greenhorn

Joined: Oct 10, 2001
Posts: 12
Hi,
Is it possible to invoke a batch file located in some other directory through a JSP page???
Thanks
Manjunatha
Mohamed Yousuff
Ranch Hand

Joined: Jun 23, 2001
Posts: 73

Yes. You can execute a batch file through a jsp. Not only that you can execute any file including .exe
Just get the Runtime by using System.getRuntime() and use the exec method to execute a batchfile.

Originally posted by Manjunatha HA:
Hi,
Is it possible to invoke a batch file located in some other directory through a JSP page???
Thanks
Manjunatha

Bal Sharma
Ranch Hand

Joined: Sep 19, 2001
Posts: 273
Could you please give us little more code example. Thanks

Yes. You can execute a batch file through a jsp.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Batch file and JSP