Web tier: servlets, JSP, Web frameworks: How to call a Batch file from the JSP page ?
I want to call a batch file ....so as to delete the cache file.
- Posted by: Syed Imthias Basha
- Posted on: January 29 2001 11:29 EST
can you tell the way of calling a batch file.
First you have to get Runtime object by calling getRuntime() method on Runtime class and after that call exec(String urbatchfilename). It will create a separate process and from there you can control it. Hope it will help you.