FileSystemView view = FileSystemView.getFileSystemView();
File file = view.getHomeDirectory();
System.out.println(file.getPath());
java 获取电脑桌面路径
最新推荐文章于 2024-02-05 14:16:23 发布
FileSystemView view = FileSystemView.getFileSystemView();
File file = view.getHomeDirectory();
System.out.println(file.getPath());