Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get processor serial number
Message
From
03/05/2004 05:40:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00900029
Message ID:
00900308
Views:
10
>aoa
>hi Citin
>Try this codes, These are not all my codes but its work good
>thanks
>clear
>*!* Let's get the CPU ID
>LOCAL lcComputerName, loWMI, lowmiWin32Objects, lowmiWin32Object
>lcComputerName = GETWORDNUM(SYS(0),1)
>loWMI = GETOBJECT("WinMgmts://" + lcComputerName)
>lowmiWin32Objects = loWMI.InstancesOf("Win32_Processor")
>FOR EACH lowmiWin32Object IN lowmiWin32Objects
> WITH lowmiWin32Object
> ? "ProcessorId: " + TRANSFORM(.ProcessorId)
> ENDWITH
>ENDFOR

If you say it works and works everywhere, what I can I say. Try on different OS + CPU before saying it works.
Also if even ever works on all OS + CPU please read what the ProcessorID member of Win32_processor is.
PS: If you read my original reply you'd notice that I say '...might work on your...'
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform