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("\\", "/"));
nice efforts...
ReplyDeletebefore + "/Desktop", you could use:
ReplyDelete+ File.separator + "Deskop"