Accessing Environment Settings : Environment : Development C# Examples


C# Examples » Development » Environment »

 

Accessing Environment Settings









    
using  System;
using  System.Collections;

class  MainClass
{
        public  static  void  Main()
        {
                Console.WriteLine("Logical  Drives");
                foreach  (string  drive  in  Environment.GetLogicalDrives())
                        Console.WriteLine("        {0}",  drive);
                
        }
}
    
   
  
   



Output

Logical Drives
    C:\
    D:\


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Environment