本帖最后由 不冬眠的蚂蚁 于 2014-3-6 10:50 编辑
class RuntimeDemo
{
public static void main(String[] args) throws Exception
{
Runtime r = Runtime.getRuntime();
//Process p = r.exec("notepad.exe SystemDemo.java");
r.exec("D:\\Program Files\\Baofeng\\StormPlayer\\StormPlayer.exe");//赋值目录,单斜杠改为双斜杠
//Thread.sleep(4000);
//p.destroy();
}
}
|
|