Development Class C#

using System;
using System.IO;
class MainClass
{
    public static void Main()
    {
        // Change the directory to %WINDIR%              
        Environment.CurrentDirectory = Environment.GetEnvironmentVariable("windir");
        DirectoryInfo info = new DirectoryInfo(".");
        Console.WriteLine("Directory Info:   " + info.FullName);
    }
}