using System; class MainClass { public static void Main() { Console.WriteLine("Current Directory: {0}", Environment.CurrentDirectory); Console.WriteLine("System Directory: {0}", Environment.SystemDirectory); } }
Current Directory: C:\Java_Dev\WEB\dev\CSharp System Directory: C:\WINDOWS\system32