Open Explorer - java

后端 未结 3 809
-上瘾入骨i
-上瘾入骨i 2021-01-12 12:47

In one of my java swing application, I am dynamically open windows share folder. Now I want to open it using explorer. So can you guys please help me out to solve it.

3条回答
  •  情书的邮戳
    2021-01-12 13:21

    If you are using Java 6, the best way to do this is to use Desktop:

    Desktop.getDesktop().open(new File(path));
    

提交回复
热议问题