I would like to ask if i intend to copy or capture the windows login name, how am i to go about doing it?
string Name = Environment.GetEnvironmentVariable("USERNAME");
string FirstPresentTime = DateTime.Now.ToString();
then write it to txt file but the name is blank but the Date&time appeared and if i change it to
string Name = ("USER");
the USER and Date&time will both appear.