获取操作系统桌面路径

mac2024-07-22  67

获取桌面路径

File desktopDir = FileSystemView.getFileSystemView() .getHomeDirectory(); String desktopPath = desktopDir.getAbsolutePath()+"/";

获取根目录

System.getProperty("user.home")

最新回复(0)