By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 1,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

Getting basic settings from PC

P: n/a
I thought that it would be very easy to get basic settings from a PC such as
OS version, amount of free disk space, computer name, memory, processor etc,
but this sodes not seem as easy as I thought. I can get quite a bit using
System. Environment, but I am unsure how to obtain the amount of system
memory and the processor. I am also surprised that I cannot get XP
directly - merely NT5x.
Best wishes

Paul Bromley
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Paul Bromley" <fl*******@dsl.pipex.com> wrote in
news:#e**************@tk2msftngp13.phx.gbl:
I thought that it would be very easy to get basic settings from a PC
such as OS version, amount of free disk space, computer name, memory,
processor etc, but this sodes not seem as easy as I thought. I can get
quite a bit using System. Environment, but I am unsure how to obtain
the amount of system memory and the processor. I am also surprised
that I cannot get XP directly - merely NT5x.

Use Windows Management Interface.
http://www.freevbcode.com/ShowCode.asp?ID=4571
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #2

P: n/a
Hi paul
You can use the garbage collector object to get info about memory the GC
is a global object that handle managed garbage collection and it exposes
many useful static functions, For total memory use the garbage collection
method GC.GetTotalMemory(true).
As for the processor , you need to call the GetSystemInfo API.
Hope that helps and best wishs to you :-)
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.