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!

Getting the workgroup name of a computer

Status
Not open for further replies.

ugagrad

Programmer
Sep 12, 2003
49
US
Does anyone know how to get a computers workgroup name and net name programatically. Any help would be great
 
Drop an Indy TCP client on to your form, or create one programatically,


label1.caption := tcp_conn.LocalName;

I called my TCP object tcp_conn and drop the name into label1's caption on the form.

There are 10 types of people in the world. Those that understand binary and those that don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top