Public Shared Function GetFolderPath ( _
folder As Environment.SpecialFolder _
) As String
and use it like following
Imports System
Class Sample
Public Shared Sub Main()
Console.WriteLine()
Console.WriteLine("GetFolderPath: {0}", Environment.GetFolderPath(Environment.SpecialFolder.System))
End Sub
End Class
as suggested in microsoft website.