Kanekotic/C# - Paths to system folders

Created Fri, 29 Jan 2016 09:56:49 +0200 Modified Sun, 05 Dec 2021 10:26:06 +0000

In the Environment class there is a property called SpecialFolder. This will provide the paths to folders like: Program files, desktop, AppData, etc. The use is the next one:

Environment.SpecialFolder.<NameSpecialFolder>

Where is the given name of the folder required, for example the AppData Local folder will be

Environment.SpecialFolder.LocalApplicationData