The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

how to run exe file from remote server

Posted by sandeep avasthi on May 04, 2001 at 8:40 AM

i have a exe file on my server and some supporting files r also there,first tell me how can i pass the path of a server n other thing how can i call all supporting files


<%@ page language="java" %>

<%
Runtime r=Runtime.getRuntime();
Process p=null;
try{
p=r.exec("http://SWIN-5/c:/BulkMailer.exe");
p.waitFor();
}catch(Exception e){

System.out.println("Exception"+e);
}
int i=p.exitValue();
response.sendRedirect("Start.html");

%>



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us