Hi All,
can anyone tell me how i can grab the username of the currently logged in user. I did this for a system running on NT4 but it has not transferred across to the 2000 platform.
Many thanks
Printable View
Hi All,
can anyone tell me how i can grab the username of the currently logged in user. I did this for a system running on NT4 but it has not transferred across to the 2000 platform.
Many thanks
What code were you using? You can normally transfer the networking API code across from VB6 fairly easily.
Environment.Username()
Gets the name of the dude that started the current thread.
But under NT once can start a process under a different username ;)Quote:
Originally posted by wossname
Environment.Username()
Gets the name of the dude that started the current thread.
Hi.
In that case, use SystemInformation.UserName
According to the help, it should return the user currently logged on to the system.
I did always despise NT with a passion.Quote:
Originally posted by plenderj
But under NT once can start a process under a different username ;)
NT is the future my friend :DQuote:
Originally posted by wossname
I did always despise NT with a passion.
Atari ST's are coming back too.
thanks for your help everyone,
apologies for the delay in replying, i have been working away. I will try migrating my existing code and try some of the options you have suggested.
Col