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"));
}
}
}