【Java】获取当前操作系统桌面路径

//当前用户桌面

File desktopDir = FileSystemView.getFileSystemView() .getHomeDirectory();

String desktopPath = desktopDir.getAbsolutePath();

posted @ 2017-04-11 15:56  朝雾轻寒  阅读(9381)  评论(1)    收藏  举报