I have created a web page using ColdFusion. In that cfm file I have the following tag for redirection:
<a href="pingdirect.jsp?Directory=#insdirs.ID_Directory#&Qlid=#inc_Requestor#">Grant
This is my Pingdirect.jsp file:
String param=request.getParameter("Directory");
String qid=request.getParameter("Qlid");
try {
String command1="Runas /user:"+param+" /grant "+qid+":(OI)(CI)(M,RX,W)\"";
Runtime rt = Runtime.getRuntime();
Process p=rt.exec("cmd /c start" +command1);
} catch(Exception e) {
System.out.println(e);
}
My problem is that when I click "grant", it redirects the page to pingdirect.jsp.
But it does not open the command prompt.
Can anyone please guide me?