Tim Van Wassenhove home

Environment.SpecialFolder is a value-type that i always seem to forget about. Let’s try to do something about that by posting about it here :)

foreach (var name in Enum.GetNames(typeof(Environment.SpecialFolder)))
{
	var specialFolder = (Environment.SpecialFolder)Enum.Parse(typeof(Environment.SpecialFolder), name);
	Console.WriteLine("{0,25} => {1}", name, Environment.GetFolderPath(specialFolder));
}
Desktop C:\Users\timvw\Desktop
Programs C:\Users\timvw\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
Personal C:\Users\timvw\Documents
MyDocuments C:\Users\timvw\Documents
Favorites C:\Users\timvw\Favorites
Startup C:\Users\timvw\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Recent C:\Users\timvw\AppData\Roaming\Microsoft\Windows\Recent
SendTo C:\Users\timvw\AppData\Roaming\Microsoft\Windows\SendTo
StartMenu C:\Users\timvw\AppData\Roaming\Microsoft\Windows\Start Menu
MyMusic C:\Users\timvw\Music
DesktopDirectory C:\Users\timvw\Desktop
MyComputer
Templates C:\Users\timvw\AppData\Roaming\Microsoft\Windows\Templates
ApplicationData C:\Users\timvw\AppData\Roaming
LocalApplicationData C:\Users\timvw\AppData\Local
InternetCache C:\Users\timvw\AppData\Local\Microsoft\Windows\Temporary Internet Files
Cookies C:\Users\timvw\AppData\Roaming\Microsoft\Windows\Cookies
History C:\Users\timvw\AppData\Local\Microsoft\Windows\History
CommonApplicationData C:\ProgramData
System C:\Windows\system32
ProgramFiles C:\Program Files
MyPictures C:\Users\timvw\Pictures
CommonProgramFiles C:\Program Files\Common Files