我是初学者...
public static void main(String[] args)
{
Runtime run= Runtime.getRuntime();
try
{
run.exec("E:\\Program Files\\东方project\\东方地灵殿 - 副本\\th11.exe");
}
catch(Exception e)
{
e.printStackTrace();
}
}
像这样打开的话没有背景音乐和历史分数记录如何才能正确的打开这些程序(跟鼠标双击打开是一个效果)
public static void main(String[] args)
{
Runtime run= Runtime.getRuntime();
try
{
run.exec("E:\\Program Files\\东方project\\东方地灵殿 - 副本\\th11.exe");
}
catch(Exception e)
{
e.printStackTrace();
}
}
像这样打开的话没有背景音乐和历史分数记录如何才能正确的打开这些程序(跟鼠标双击打开是一个效果)
word程序路径 文件路径