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实现系统命令的调用,调用系统命令访问百度
最新推荐文章于 2023-04-13 11:06:31 发布