Results 1 to 11 of 11

Thread: Get system username ...

Hybrid View

  1. #1
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Get system username ...

    You can use the environmental variables...

    VB Code:
    1. Dim strUser
    2.   strUser = Environ("Username")
    3.   MsgBox strUser
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  2. #2
    Fanatic Member Blade's Avatar
    Join Date
    Jan 1999
    Location
    Stoke-on-Trent, UK
    Posts
    527

    Re: Get system username ...

    Quote Originally Posted by dannymking
    You can use the environmental variables...

    VB Code:
    1. Dim strUser
    2.   strUser = Environ("Username")
    3.   MsgBox strUser
    I don't believe it! All these years I've used the API to get it and it was that simple all along

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Location
    Poland
    Posts
    10

    Re: Get system username ...

    Thanks a lot - PERFECT answer
    Have a nice weekend

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