Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows NT Users and Groups
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00409329
Message ID:
00415562
Vues:
29
>Sorry, I don't mean to take it out on you personally, I'm just frustrated with launching into a 6 week learning spree every time I need to figure out how to do something that should be fairly simple.
>
>Can you tell I'm having a bad day? :)
>

Think nothing of it. Had plenty of those days myself recently.

Maybe to help a little more is to find the object model for WMI and take a quick look. It is a Locator object that sits on top. (I am think of this as a portal to all of the other objects, you can't get to them without it first). Under this you can do a lot of other things, what you need to accomplish decides how and where you go next. You might need to just connect the Locator object to the server of choice, which give you another object. On this object you can do a ExecQuery, like oService.ExecQuery("Select * From Win32_BIOS"), which give you another object with the properties listed in the Reference sections you are looking at.

I know things seem overwhelming most of the time on these new things, but you can make it through them. I only found the WMI a little more than a week ago and will be in testing by next week. When I approach something like this I just remind myself that I can figure it out and do it, but only if I try. This might sound a little lame but it works for me. Find what works for you and go with it. Thats why I have this contract, it's certainly not because I fit into the environment here all that great. Also so that you don't think I'm one of those young know it alls that I find out there and just want to smack. I too remember those days of memorizing most of those things back around my college days, back when DBase III and Clipper made for a good quick application.

If you do get the urge here is a link to even more reading enjoyment.
http://msdn.microsoft.com/downloads/sdks/wmi/whitepapers.asp

Good Luck
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform