Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verifying computer name on network
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00960159
Message ID:
00960162
Vues:
8
>I would like to include a routine that verifies the existence of a computer on the network (by name). Currently this name is in the form of a variable. However I'm wondering if there's a (Win32?) or other method of getting a yes/no so I can tell my program what to do from there. As always examples are greatly appreciated!
>
>Alan

You can use WMI or LDAP, but, if the name if the only thing you want, take a look at ANETRESOURCES help

For example, something like this might work
lparameters tcComputer
local laComputers(1), lnComputer
Anetresources(laComputers, Getenv("USERDOMAIN"), 1)
lnComputer = Ascan(laComputers, '\\' + tcComputer) 
return lnComputer
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform