string path = Directory.GetCurrentDirectory(); Console.WriteLine("The current directory is {0}", path);