You can use the following code to get the full path to the current user's desktop folder.
String desktopPath = System.getProperty("user.home") + "/Desktop";
System.out.print(desktopPath.replace("\\", "/"));
System.out.print(desktopPath.replace("\\", "/"));
No comments:
Post a Comment