Hello salman,
Use WMI for this. See MSDN
you can view the some WMI info via console with WMIC.exe
for exacple after u run wmic type CPU and u get detailed info about cpu
s> how can i find cpu speed , ram capacity and cpu's free cycle in C#
s> .Net. Please reply urgent.
s>
---
WBR,
Michael Nemtsev :: blog:
http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche