Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serial number
Message
De
24/12/2012 17:04:23
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01560527
Message ID:
01560582
Vues:
81
>>>>how can i have the serial number of a computer ?
>>>>
>>>>can this function be run by sqlserver ?
>>>
>>>Which part of a computer? Hard drive? BIOS? CDROM? Fan?
>>
>>
>>The fan(s) would be nice, Mike
>
>If the information is in the right place, this will do it.
>
>
On Error *
>lcComputer = "."
>loWMIService = GetObject("winmgmts:\\" + lcComputer + "\root\cimv2")
>colItems = loWMIService.ExecQuery("Select * from Win32_Fan")
>For Each loItem in colItems
>?"Active Cooling: " + loItem.ActiveCooling
>?"Availability: " + loItem.Availability
>?"Device ID: " + loItem.DeviceID
>?"Name: " + loItem.Name
>?"Status Information: " + loItem.StatusInfo
>?
>Next
Wow, I impressed but I think so he is just still waiting for fan serial yet... :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform