SHGetKnownFolderPath / Environment.GetFolderPath() returning wrong value for public documents
问题 I got a somewhat strange error when trying to resolve the CommonDocuments directory. It keeps resolving to the wrong directory, after the CommonDocuments directory has been redirected / moved to a new location using Windows Explorer (Properties->Path from the context menu). a minimal working piece of code would be: namespace CommonDocumentsTest { class Program { private static readonly Guid CommonDocumentsGuid = new Guid("ED4824AF-DCE4-45A8-81E2-FC7965083634"); [Flags] public enum