📜  如何在 java swing 项目中打开文件夹 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:25.186000             🧑  作者: Mango

代码示例1
String FolderName="C:/name";//Write your complete path here
try {
       Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + FolderName);
    } catch (IOException ex) {
             Logger.getLogger(ClassName.class.getName()).log(Level.SEVERE, null, ex);
    }