Techincal Blog
Wednesday, June 24, 2009
Environment variables in C#
C# syntax:
To get the logged-in username:
string username = System.Environment.GetEnvironmentVariable("USERNAME");
To get the name of the client machine:
string machinename = Environment.MachineName;
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
About Us
Anu
Ruchi
Shavi
Blog Archive
►
2012
(2)
►
April
(1)
►
February
(1)
►
2011
(1)
►
October
(1)
▼
2009
(5)
►
October
(1)
▼
June
(1)
Environment variables in C#
►
May
(1)
►
April
(1)
►
March
(1)
►
2008
(11)
►
December
(1)
►
October
(2)
►
September
(8)