Accessing Environment Settings : Environment : Development C# Examples


C# Examples » Development » Environment »

 

Accessing Environment Settings









    
using  System;

class  MainClass
{
        public  static  void  Main()
        {
                Console.WriteLine("Current  Directory:  {0}",  Environment.CurrentDirectory);
                Console.WriteLine("System  Directory:  {0}",  Environment.SystemDirectory);
        }
}
    
   
  
   



Output

Current Directory: C:\Java_Dev\WEB\dev\CSharp
System Directory: C:\WINDOWS\system32


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Environment