Click here to Skip to main content

VS 2012/2013 & .NET 4.5.1

AnswerRe: Thanking Mike Meinz PinmvpRichard MacCutchan20-Feb-13 5:35 
AnswerRe: Thanking Mike Meinz PinmvpSandeep Mewara20-Feb-13 6:27 
Questionfind sentence with regular expression in VS PinmemberElham M18-Feb-13 21:25 
AnswerRe: find sentence with regular expression in VS PinprotectorPete O'Hanlon18-Feb-13 22:24 
Questionprocessor id Pinmembersrinivasankrishnaa16-Feb-13 3:38 
AnswerRe: processor id [modified] PinmemberMike Meinz16-Feb-13 4:22 
GeneralRe: processor id Pinmembervivek51117-Feb-13 23:48 
GeneralRe: processor id PinmemberRichard Deeming18-Feb-13 2:05 
Alternatively, if you want to do this the .NET way rather than the VBScript way, add a reference to the System.Management assembly, import the System.Management namespace[^], and use:
Using searcher As New ManagementObjectSearcher("Select * from Win32_Processor")
   Using processors As ManagementObjectCollection = searcher.Get()
      For Each processor As ManagementObject In processors
         Console.WriteLine("Manufacturer:  {0}", processor("Manufacturer"))
         Console.WriteLine("Name:          {0}", processor("Name"))
         Console.WriteLine("Description:   {0}", processor("Description"))
         Console.WriteLine("ProcessorID:   {0}", processor("ProcessorID"))
         Console.WriteLine("Architecture:  {0}", processor("Architecture"))
         Console.WriteLine("AddressWidth:  {0}", processor("AddressWidth"))
         Console.WriteLine("NumberOfCores: {0}", processor("NumberOfCores"))
         Console.WriteLine("DataWidth:     {0}", processor("DataWidth"))
         Console.WriteLine("Family:        {0}", processor("Family"))
         Console.WriteLine("MaxClockSpeed: {0}", processor("MaxClockSpeed"))
   End Using
End Using

"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

AnswerRe: processor id PinmemberMike Meinz18-Feb-13 5:23 
QuestionCrystal Report for Visual Studio 2010 Pinmembersource.compiler14-Feb-13 20:10 
QuestionAdd a Class to a Windows App [modified] PinmemberASPnoob8-Feb-13 18:09 
AnswerRe: Add a Class to a Windows App PinmvpRichard MacCutchan8-Feb-13 22:55 
GeneralRe: Add a Class to a Windows App PinmemberASPnoob8-Feb-13 23:27 
QuestionVirtual memory not released after my program ran out of memory ... [modified] PinmemberMartial8-Feb-13 0:50 
QuestionCross page posting PinmemberTanaji.C30-Jan-13 0:38 
AnswerRe: Cross page posting PinmvpRichard MacCutchan30-Jan-13 2:56 
AnswerRe: Cross page posting PinprotectorPete O'Hanlon30-Jan-13 3:16 
GeneralRe: Cross page posting PinmemberTanaji.C30-Jan-13 17:10 
GeneralRe: Cross page posting PinprotectorPete O'Hanlon30-Jan-13 18:50 
AnswerRe: Cross page posting PinmemberEdo Tzumer2-Feb-13 23:09 
QuestionFiring event when creating instance of a class in PinmemberMir Hassan Shams Moosavi23-Jan-13 6:00 
AnswerRe: Firing event when creating instance of a class in PinmemberPaulo Zemek23-Jan-13 6:09 
QuestionAssistant in the work of the Graduation Project Pinmemberalaa_2220-Jan-13 5:14 
Questionosk to notepad Pinmembersrinivasankrishnaa16-Jan-13 4:08 
AnswerRe: osk to notepad PinmvpRichard MacCutchan16-Jan-13 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 10 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid