FileSystemView view = FileSystemView.getFileSystemView();
File file = view.getHomeDirectory();
System.out.println(file.getPath());
java 获取电脑桌面路径
最新推荐文章于 2022-12-08 11:10:10 发布
FileSystemView view = FileSystemView.getFileSystemView();
File file = view.getHomeDirectory();
System.out.println(file.getPath());