I need to store files into the common desktop on Windows. The application is a very special application for exactly one special PC (device preparation), so it had to be easy for non-techie users to find and modify the configuration file. Now we switched to a domain, and because different people (with different accounts) should use the software, it has to be in a common place, seen by every user. So please don't ask why it's on the desktop ;)
Previously, I just used Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
. There are several of the common folders in the SpecialFolder
enumeration, but the common desktop seems not to be there. Am I missing something, or do I have to p/invoke SHGetSpecialFolderPath
with CSIDL_COMMON_DESKTOPDIRECTORY
?