>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