On Jun 14, 9:25 pm, iceman <[email protected]> wrote: > currently my windows is installed on c:\ and i have relocated my > Documents directory > i need a command to retrieve this path(in my case it is D:\Iceman > \Documents ) I have an earlier post on this thread which is not put up. In that post, in short, I suggested: String userDocuments=System.getProperty("user.home")+"\Documents"; Do not go that way. I experimented and found out, this does not work as <user.home> still points to the previous directory, even after relocation.
@ Moderator, Administrator, Anyone. I have made several post prior to this. Application indicates: Post successful. However, it is not put up. Could someone please tell me why they are not put up? > as the user could relocate this folder anywhere > > i have tried the System.getProporties() methord, but it has no key > value for documents > usually the documents folder is in <home dir>\Documents > but it could be relocated.... > > in vista it can be relocated by > start -> rt click on documents -> loaction (tab) > > On Jun 13, 10:37 pm, Victor Ortiz <[email protected]> wrote: > > > > > Hi, > > > You can use the system properties included in java to retrieve the > > users default path. > > > Hope this answer your question. > > > Have a nice weekend > > > MfG / Mslts / Best regards > > > Ortiz Victor > > Flexcom > > > Le 11 juin 09 à 19:39, iceman <[email protected]> a écrit : > > > > in my project i need the current users documents folder > > > by default it is c:\users\<user name>\Documents > > > but this folder can be relocated ? > > > so, if it is relocated how can we retrive the path ?? --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
