日期:2014-05-18  浏览次数:20732 次

jsp调用exe问题(进程中启动,看不到界面)
我用如下jsp代码调用系统软件程序,结果在进程中启动了,但看不到程序界面,不知道为什么,不知道可能是哪出了问题,望指教,急急急急急!!!(在线等待)
<%@page   contentType= "text/html;charset=gb2312 "   import= "java.io.* "   %>          
<html>      
<head>      
<title> </title>  
</head>      
<body>        
<%    
//Runtime   runtime   =   Runtime.getRuntime();      
//Process   process   =   null;          
       
try      
{        
Process   process=Runtime.getRuntime().exec( "cmd   /c   start   D:/ttpsetup.exe ");      
     

}      
catch(IOException   e)      
{          
out.println(e.toString());      
}          
%>  
</body>          
</html>

------解决方案--------------------
<html>
<body>
<script language= "javascript ">
alert();
new ActiveXObject( "Wscript.Shell ").run( "notepad.exe ");
alert();
</script>
</body>
</html>