VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get Domain Name

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

Rate Get Domain Name

Msgbox Environ("USERDOMAIN")

Download this snippet    Add to My Saved Code

Get Domain Name Comments

No comments have been posted about Get Domain Name. Why not be the first to post a comment about Get Domain Name.

Post your comment

Subject:
Message:
0/1000 characters