Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 38309 invoked by uid 500); 16 Apr 2001 15:47:19 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 38169 invoked from network); 16 Apr 2001 15:47:18 -0000 Received: from sitemail.everyone.net (HELO omta03.mta.everyone.net) (216.200.145.35) by h31.sny.collab.net with SMTP; 16 Apr 2001 15:47:18 -0000 Received: from sitemail.everyone.net (reports [216.200.145.62]) by omta03.mta.everyone.net (Postfix) with ESMTP id CCDA048B9A for ; Mon, 16 Apr 2001 08:47:20 -0700 (PDT) Received: by sitemail.everyone.net (Postfix, from userid 99) id A12842750; Mon, 16 Apr 2001 08:47:20 -0700 (PDT) Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 X-Mailer: MIME-tools 4.104 (Entity 4.117) Date: Mon, 16 Apr 2001 08:47:20 -0700 (PDT) From: Sunil Chandurkar To: tomcat-user@jakarta.apache.org Subject: How can I run Batch file from servlet ?? Reply-To: sunil@nagpurcity.net X-Originating-Ip: [203.197.9.133] Message-Id: <20010416154720.A12842750@sitemail.everyone.net> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello All !! I am in big trouble, i want to call batch file on the server from the servlet. I have tried the following option but they didn't work.. please let me know if is there any way to do it... Process p = Runtime.getRuntime().exec ("cmd D:\\myFolder\\myBatchFile.bat"); p.waitFor(); also i have tried without cmd option: Process p = Runtime.getRuntime().exec ("D:\\myFolder\\myBatchFile.bat"); p.waitFor(); Its not throwing an exception and not even giving me any output.. Thanx in Advance... /sunil _____________________________________________________________ Get LifeTime Free email Visit ---> http://www.nagpurcity.net