Expand Environment Variables : Environment : Development C# Examples


C# Examples » Development » Environment »

 

Expand Environment Variables









    
using  System;
using  System.Collections;

class  MainClass
{
        public  static  void  Main()
        {
                Console.WriteLine(Environment.ExpandEnvironmentVariables(
                                "The  Path  on  %computername%  is  %Path%"));
                        
        }
}
    
   
  
   



Output

The Path on navioo is C:\Program Files\Microsoft.NET\SDK\v2.0\Bin;
...


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Environment