Java 获取本机桌面目录


//获取本机桌面目录
File desktopDir = FileSystemView.getFileSystemView().getHomeDirectory();
String desktopPath = desktopDir.getAbsolutePath();

相关