I have a VB6 app that uses the Environ("userprofile") command to determine the location of the My Documents folder for the currently logged in user.
This has been working fine for ages with no problems. One particular client has had the user directory redirected to a network location so that he can back up all the user data. The problem I face is the Environ("userprofile") still returns the local C Drive location for the user and not the mapped network location.
How can I determine where the real user profile has been mapped to ? Is it a registry entry that can be read ?