Gets or sets the fully qualified path of the current working directory.
using System;
using System.IO;
class MainClass
{
publicstaticvoid Main()
{
// Change the directory to %WINDIR%
Environment.CurrentDirectory = Environment.GetEnvironmentVariable("windir");
DirectoryInfo info = new DirectoryInfo(".");
Console.WriteLine("Directory Info: " + info.FullName);
}
}