|
-
Feb 19th, 2001, 03:24 PM
#1
Thread Starter
Addicted Member
Is there a way to find out the current user name and
the users settings path or the currently logged in user?
For WinNT and Win9x
Always looking for a better and faster way!
-
Feb 19th, 2001, 03:26 PM
#2
Addicted Member
'Get Computer Name
MsgBox Environ("ComputerName")
'Get User Name
MsgBox Environ("Username")
-
Feb 19th, 2001, 03:27 PM
#3
Fanatic Member
Try this:
Code:
For i = 1 To 26
Debug.Print Environ(i) & vbCrLf
Next i
You can also you API, if you want API code for this, please let me know.
Regards,
TheBao
Last edited by TheBao; Feb 19th, 2001 at 04:02 PM.
-
Feb 19th, 2001, 03:57 PM
#4
Thread Starter
Addicted Member
hey thanx ppl! thats worked great! Solved alot of
proplems 4 me!
Always looking for a better and faster way!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|