How to get path of special directories in VB.NET

Environment namespace provides information about current environment and platform that we are using. If we want to use some special folder path that are created on the time of operating system installation such as Program Files, Programs, History  CommonProgramFiles  ApplicationData  or MyMusic, we can use GetFolderpath method of Environment class of System namespace . GetFolderpath method returns the path to the system special folder identified by the specified enumeration.

Example :

Dim FolderName As String= Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)