VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get User and Computer Name(Just in Two Line Code)

by Jalil Iqbal (2 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 2nd August 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Get User and Computer Name(Just in Two Line Code)

Rate Get User and Computer Name(Just in Two Line Code)



Set WN = CreateObject("Wscript.Network")
MsgBox "User Name: " & WN.UserName & vbCr & "Computer Name: " & WN.ComputerName
End Sub

Download this snippet    Add to My Saved Code

Get User and Computer Name(Just in Two Line Code) Comments

No comments have been posted about Get User and Computer Name(Just in Two Line Code). Why not be the first to post a comment about Get User and Computer Name(Just in Two Line Code).

Post your comment

Subject:
Message:
0/1000 characters