I need the current user and the domain. I am using a VB 6 application.
Thanks
One way would be to ask the environment:
Dim UserName As String
Dim UserDomain As String
UserName = Environ("USERNAME")
UserDomain = Environ("USERDOMAIN")
(Works on Windows NT and up only, obviously.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With