package cn.wzt;
import java.io.IOException;
public class Dir3 {
public static void main(String[] args) throws IOException {
Runtime runt =Runtime.getRuntime();
runt.exec("cmd /k start http://baidu.com");
}
}
Runtime实现系统命令的调用,调用系统命令访问百度
阅读 45
2022-02-15
package cn.wzt;
import java.io.IOException;
public class Dir3 {
public static void main(String[] args) throws IOException {
Runtime runt =Runtime.getRuntime();
runt.exec("cmd /k start http://baidu.com");
}
}
相关推荐
精彩评论(0)