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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to know the pc network name? 2

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
DO
Hi all, could be someway that i can get with vfp the PC NETWORK NAME, i need it that way cause i neet each pc wich conect to the server have a different name in order to know with the application wich one is on.

thanks in adavance
 
Try to see the example from 'Slighthaze'
faq184-3854

Zhavic

---------------------------------------------------------------
In the 1960s you needed the power of two Comodore64s to get a rocket to the moon. Now you need a machine which is a vast number of times more powerful just to run the most popular GUI.
 
Gert,
I use this to also retrieve the current user of that machine:
padr(substr(sys(0),1,25),25)

-Bart
 
This will give you the User Name

m.cUserID = SUBS(SYS(0), AT("#", SYS(0)) + 1)

-Foxproboss-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top