Mega Code Archive

 
Categories / C# Tutorial / Development
 

Use GetFolderPath method to return and display the path associated with the folder parameter

using System; class Sample  {     public static void Main()      {         Console.WriteLine("GetFolderPath: {0}",                   Environment.GetFolderPath(Environment.SpecialFolder.System));     } }