Results 1 to 4 of 4

Thread: User

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Orlando, FL
    Posts
    253
    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!

  2. #2
    Addicted Member
    Join Date
    Apr 1999
    Location
    Atlanta
    Posts
    145
    'Get Computer Name
    MsgBox Environ("ComputerName")
    'Get User Name
    MsgBox Environ("Username")

  3. #3
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    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.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Orlando, FL
    Posts
    253
    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
  •  



Click Here to Expand Forum to Full Width