Hi,
How to run an exe or bat file andalso how to open msword with a specified document using
jsp. Can any one please help me.
I tried with the following code but it doesn't give any errors and no output. I am using tomcat5.5.14.
<%@page import="java.util.*,java.text.*,java.io.*"%>
<%
Runtime r = Runtime.getRuntime();
Process p = null;
try
{
p = r.exec("cmd /C C:/windows/NOTEPAD.exe");
}
catch(Exception e)
{
out.println(e.getMessage());
}
%>
----------
Regards,
Bharath kumar.