2012-04-24 76 views

回答

0

我使用的代碼(在我自己的程序)

File help = new File(FILEPATH); 
if(help.exists() == false) 
    throw new Exception(); 
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + FILEPATH); 

,你必須把你想要的文件路徑。這可能是Windows特有的,不確定。 :/

相關問題