In the company, we've got several global Java applications used by our employees. Some of them allow the users to create reports, which are always saved in their home directory. The home directories are network drives and are assigned the drive letter U:/
when a user logs himself in on his computer. So, in the applications, the path to the report destination directory is simply a hard coded U:\Reports
.
However, we will soon migrate from Windows XP to Windows 7 and use a different structure: The users will get new home directories on other servers, which will be accessible in the Documents Library in the Windows 7 Explorer. There wont be any drive letters anymore.
So the new path for the report directory is supposed to be Libraries\Documents\My Documents\Reports
. But how would I be able to access this path in Java? How can I find the actual, absolute UNC path (if this is even necessary)?
I can't just use \\theserver\users\username
, since we've got multiple servers (one for every continent). I have to use the folder in the Windows 7 Document library.