Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hard Disk serial number
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01083011
Message ID:
01084089
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform