473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Information About RAM..

Is there any method in System.Management.DLL for getting information
about RAM and CPU?

Nov 17 '05 #1
4 1722
ObjectQuery objectQuery = new ObjectQuery("select * from
Win32_Processor");
ManagementObjectSearcher searcher =
new ManagementObjectSearcher(objectQuery);
foreach (ManagementObject share in searcher.Get())
{
Response.Write("Share = " + share["Name"]);
}
Above code is return the information about CPU by using the sql
select * from Win32_Processor

How to find RAM or full hardware information i dont know..

Please Help me

Nov 17 '05 #2
Please consult the WMI platform docs. in MSDN, seach for the WMI class and
look at the properties you can query. Numerous samples like
http://www.codeproject.com/csharp/NitinSystemInfo.asp
can be found when Googling.

Willy.

"sonu" <kr*******@yahoo.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
ObjectQuery objectQuery = new ObjectQuery("select * from
Win32_Processor");
ManagementObjectSearcher searcher =
new ManagementObjectSearcher(objectQuery);
foreach (ManagementObject share in searcher.Get())
{
Response.Write("Share = " + share["Name"]);
}
Above code is return the information about CPU by using the sql
select * from Win32_Processor

How to find RAM or full hardware information i dont know..

Please Help me

Nov 17 '05 #3
TRhank Willy,

Nov 17 '05 #4
http://msdn.microsoft.com/library/de...ctorTopic6.asp
("Select * from Win32_ComputerSystem")
"sonu" <kr*******@yahoo.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
ObjectQuery objectQuery = new ObjectQuery("select * from
Win32_Processor");
ManagementObjectSearcher searcher =
new ManagementObjectSearcher(objectQuery);
foreach (ManagementObject share in searcher.Get())
{
Response.Write("Share = " + share["Name"]);
}
Above code is return the information about CPU by using the sql
select * from Win32_Processor

How to find RAM or full hardware information i dont know..

Please Help me

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Emine Ekin | last post by:
/*Apologize for multiple posts*/ FIRST CALL FOR PAPERS ADVIS 2006 Fourth Biennial International Conference on Advances in Information Systems 18-20 October, 2006 Izmir, Turkey
6
by: Ian Williamson | last post by:
Greetings, My company has an ASP.NET based enterprise product that is undergoing some changes and I need some community input to help solve a problem. In the current implementation, any given...
0
by: Derek | last post by:
I am creating an intranet using Visual Web Developer Express Edition. Everything has been working OK until yesterday when I started getting 62 messages all beginning "Could not find schema...
10
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm trying to use the new VB 2008 right now and I want to know how to preset the company name and copyright informtion in Assembly Information. In my current VB 2005, company name...
1
by: sora | last post by:
Hi, I've developed a MFC program under VS 6.0. My debugger *was* working fine and I've used it often for my project. Then, one day, the errors below appear and they prevent me from using the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.