Search Tools Links Login

Get Domain Name


Ever wanted to get the Domain of the currently logged on user?
This code works on Windows NT and further.

Original Author: Nico Debeuckelaere

Returns

Domain Name as a string

Code

Msgbox Environ("USERDOMAIN")

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 95 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.