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;
...