Get system folder in CSharp
Description
The following code shows how to get system folder.
Example
/*from www.j a va 2s . c om*/
using System;
class Sample
{
public static void Main()
{
Console.WriteLine("GetFolderPath: {0}",
Environment.GetFolderPath(Environment.SpecialFolder.System, Environment.SpecialFolderOption.None));
}
}
The code above generates the following result.