I know you can get the username of the person logged on by typing environ (username). I need a code to get the username's of all the accounts on the computer.
Can somebody help me as i need this code.
Thanks in advance chris1990
Printable View
I know you can get the username of the person logged on by typing environ (username). I need a code to get the username's of all the accounts on the computer.
Can somebody help me as i need this code.
Thanks in advance chris1990
My FAQ thread - http://vbforums.com/showthread.php?t=357723
I dont want the username of the current user i want to be able to display all the usernames from the pc in labels
Well then you could try enumerating the user folders in the "Documents and Settings" directory but then for systems other then 2000/xp it will be in different locations.