Wriju's BLOG

.NET, Cloud and everything

.NET Framework 4.0 Newbie : Addition to Environment.SpecialFolder enum

In .NET Framework 4.0 we have few new useful Environment variables,


AdminTools


CDBurning


CommonAdminTools


CommonDesktopDirectory


CommonDocuments


CommonMusic


CommonOemLinks


CommonPictures


CommonProgramFilesX86


CommonPrograms


CommonStartMenu


CommonStartup


CommonTemplates


CommonVideos


Fonts


LocalizedResources


MyVideos


NetworkShortcuts


PrinterShortcuts


ProgramFilesX86


Resources


SystemX86


UserProfile


Windows


In addition to that Environment.GetFolder path now has one additional overload which accepts Environment.SpecialFolder enum as parameter.


image



These address a broad range of requirements like x64 OS to Win 7 onwards profiles.


Namoskar!!!