Friday, 4 January 2013

find currently logged on user c#


find currently logged on user c#


  Console.WriteLine(System.Environment.UserName);

//Output: for ex: Administrator   

No comments:

Post a Comment