Windows Login Name

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

How can I get the currently logged in username from windows 2000/xp?

Thanks

Regards
 
John,

In addition to Patrick's reply, you can also use Environment.UserName.

HTH,
Gary
 
Gary,

* "Gary Milton said:
In addition to Patrick's reply, you can also use Environment.UserName.

.... and 'SystemInformation.UserName'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top