2015-06-08 111 views

回答

0

如果文件下载位置默认为某个位置。

您可以使用以下方法进行交叉检查。

File f = new File("PathToFileorDirectory"); 
if (f.exists()) { 
    Process p = Runtime 
      .getRuntime() 
      .exec("rundll32 url.dll,FileProtocolHandler "path of PDF file""); 
    p.waitFor(); 
    } 
else 
system.out.println("File does not Exist"); 
相关问题