• Post Reply Bookmark Topic Watch Topic
  • New Topic

Runtime.getRuntime().exe(" "); problem

 
chakri san
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is Jsp application could u please help me
<%@ page language="java" import = "javax.servlet.ServletException ,
javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse ,
java.io.PrintWriter,
java.io.IOException,MultipartRequest,
ServletMultipartRequest,java.io.*,
javax.servlet.http.HttpServlet,java.lang.Runtime.*" %>



<%




try
{

MultipartRequest parser = new ServletMultipartRequest(request,"d:/tomcat4.5/");
out.println(" File Uploaded..");

Process p = Runtime.getRuntime().exec("cmd.exe d:/Tomcat4.5/webapps/apseb/aptl/controlfile/bcrc.bat");
out.print(p);
}

}

catch(IOException e) {
out.println("IOException starting process! 1\n");
out.println(e.getMessage());
}

%>
thanks,
chakravarti
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!