Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get the NIC address in VFP?
Message
 
À
26/10/1999 19:14:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00281723
Message ID:
00339970
Vues:
16
Eric,
Thanks again for the help. I wound up using sys(0) to id the computer and user and it works great. Now I have another question. When I run the WinSock function on my Win 95 computer it works great. Returns a different IP address each time I log onto my ISP just like I thought it would. When I run it on my Win 98 PC it allways returns the same number. Even when I'm not logged on. Any ideas?


>>Here I go again. In gool old DOS on Novell I could get the P_STATION number, the ethernet card address, using any number of different librarys. We use this to track errors and all kinds of things. How can I get this number in VFP? Is it also possible to get the name the user used to log into the network? Again this was easy in the old days.
>
>IP Address:
>
>oWinSock = CreateObject("MSWinsock.Winsock")
>?oWinSock.LocalIP
>
>Username and machine name:
>
>SYS(0)
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform