I have a german operating system and i need to get the path of a folder. In windows 7 the displayed name for “Documents” is “Dokumente”. But if I take the path like
string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
I get C:\\Users\\Username\\Documents\\
but I need C:\\Benutzer\\Username\\Dokumente\\
Any idea how I can get the localized path?
You’ll find that it is actually called “Documents” on your system. The “Dokuments” path is actually only displayed in Explorer (this localized name is referenced in the
desktop.inifile). So the path thatEnvironment.GetFolderPathreturns is actually correct and usable. You can see the “real” names by opening upcmdand runningdir /awithin your profile directory.