Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 155
  • Last Modified:

Name of computer

How can i get the name of a computer using a VB5 code
Thank You,
Birendra
0
kishor33
Asked:
kishor33
  • 2
1 Solution
 
chabaudCommented:
try the GetComputerName function:

private declare GetComputerName lib "kernel32.dll" (byval buf as string, byref nSize as long)

function GetName()
dim buf as string
buf=space(128)
GetComputerName buf, 128
GetName= trim(buf)
end function

0
 
a111a111a111Commented:
What is this one point?
Do you think this is a game?
Get your points to 50, 100, 200 and let the real work to be done.
Do you like to answer on Q and get one point yourself?

Rise "UP" the points first!
0
 
kishor33Author Commented:
Thanks for the answer it really works
0
 
chabaudCommented:
Thanks for you no point !

Just to encourage you. www.experts-exchange.com really works too !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now