Avatar of mfazi
mfazi
 asked on

computer name

Hi,
Can u tell me how i can read computer name in VB6. fazi
Programming Languages-OtherVisual Basic Classic

Avatar of undefined
Last Comment
DanRollins

8/22/2022 - Mon
StonedRaider

use GetComputerName API function
ASKER CERTIFIED SOLUTION
Dirk Haest

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
freeman200

Add a Winsock component.

MsgBox Winsock1.LocalHostName

Thats it...
CleanupPing

mfazi:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
DanRollins

Moderator, my recommended disposition is:

    Accept Dhaest's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer