我想使用新 session 动态打开 Internet Explorer,而不知道确切的路径。我尝试从 Java 打开 Internet Explorer,使用:
Runtime.getRuntime().exec("iexplore.exe -noframemerging http://google.com/");
但是由于 iexplore.exe
未在系统变量中定义,因此无法找到该位置。
请建议我继续前进的方法。
最佳答案
以下内容会将 google 加载到 Windows 上的默认浏览器中...
Runtime.getRuntime().exec("cmd /c start http://google.com/");
关于java - 在Java中打开Internet Explorer而不指定路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30368167/