public static void mm(){
Runtime run= Runtime.getRuntime()
try
{
run.exec("D:/abc.bat")//添加程序路径
}catch(Exception e)
{
e.printStackTrace()
}
}
public static void main(String[] args) throws IOException {
Desktop.getDesktop().open(new File("d:/abc.bat"))
}
}
}
public class MyTest {public static void mm(){
Runtime run= Runtime.getRuntime()
try
{
run.exec("D:/abc.bat")//添加程序路径
}catch(Exception e)
{
e.printStackTrace()
}
}
public static void main(String[] args) throws IOException {
Desktop.getDesktop().open(new File("d:/abc.bat"))
}
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)