Java 打开文件夹并选中文件

原文:
https://www.cnblogs.com/softidea/p/4573401.html
https://www.cnblogs.com/ydemo/p/10450417.html
https://www.cnblogs.com/freshier/p/4700696.html
https://blog.csdn.net/qq_38132283/article/details/108060994



Windows
Runtime.getRuntime().exec("explorer /select, <file path>")

MacOS
Runtime.getRuntime().exec("open -R <file path>");

explorer /e,/root,C:\Windows
explorer /e,/select,c:\windows\system32\calc.exe

posted @ 2020-12-17 11:05  古兴越  阅读(684)  评论(0编辑  收藏  举报