class="java" name="code">/** 通过命令行执行,打开指定的url页面 * @param url url地址 */ public void openHTTPURL(String url){ url="http://10.1.98.202:9008/itnf/UltraProcess/servlet/process/CmcEomsIncidentServlet.action?sheetNo=JT-52-130904--00002&userName=nfjd_zdpd"; try { if(url == null || url.trim().equals("") || url.trim().equalsIgnoreCase("null")) { return; } url.replaceAll("\"", "\'"); url = "\"" + url + "\""; String command = "cmd /c start iexplore "; Runtime.getRuntime().exec(command + url); } catch (Exception e) { System.out.println(e); } }
?
?