by Nico Debeuckelaere (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(4 Votes)
Ever wanted to get the Domain of the currently logged on user?
This code works on Windows NT and further.
Code Returns
Domain Name as a string
Msgbox Environ("USERDOMAIN")