Environment: Windows PC running .NET Framework.
Sample code:
Console.WriteLine(Environment.GetFolderPath(Environment.SpecialFolder.Personal)
Console.Readline()
On my PC, this results in c:\Users\mds\Documents. Doing an echo %USERPROFILE% at the command line yields c:\Users\mds.
My customer's environment is more complicated, involving redirection and roaming profiles. The above code shows \\someserver\users\theiruser. Doing an echo %USERPROFILE% shows c:\Users\theiruser.
Theiruser was migrated to the server \\anotherserver, but the above code still shows \\someserver\users\theiruser. They allege it should either come back with \\anotherserver\users\theiruser, or c:\Users\theiruser\Documents.
Am I executing the wrong code to obtain the Personal (or MyDocuments) folder, or have they configured something wrong (and if so, what)?