Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hard Disk serial number
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 7
Divers
Thread ID:
01083011
Message ID:
01084089
Vues:
28
>Hi Cetin
>
>>>>
>>>>loWMI = GetObject("winmgmts:\\.\root\cimv2")
>>>>
>
>Just for record the first line itself did not work on my W2K VFP6
>
>Thanks.


Bhavbhuti,

For VFP 6 you can use this equivalent:
loLocator	= CREATEOBJECT('WBEMScripting.SWBEMLocator')
loWMI		= loLocator.ConnectServer()
Of course the fact that you are using W2K will make it fail when trying to use physical media class which requires XP or newer
"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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform