Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing a Computers Identification

Status
Not open for further replies.

kaylabear

Programmer
Oct 23, 2002
59
CA
Hello

How do I go about asking a computer for its name (Or some other unique identification number), from my visual basic application?

Your help is greatly appreciated!!
 
Thank you ETID, but can you elaborate on that definition a little PLEASE,

THankS
 
kaylabear
ETID is suggesting you use the 'built in' environment variables (which is also what I would have sugggested!)

I'm not working at the mo and can't remember full details and my win 95 machine is a bit limited. If you open a DOS window and type SET <enter> you will get a list of available variables - I think set by your system.

In your case you should see something like
COMPUTERNAME = &quot;MYLITTLEPC1&quot; or however they're named. The code ETID posted returns this name. You can use this syntax for checking the temp directory, prompt information, path statement and so on.

Can't check myself but I think you will have to look deeper if you want the name of a remote PC ie not the one running the routine.

Hello everyone!
[wavey2] If a man says something and there are no women there to hear him, is he still wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top