Sign in
United States (English)
Brasil (Português)
Česká republika (Čeština)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italiano)
Россия (Русский)
대한민국 (한국어)
中华人民共和国 (中文)
台灣 (中文)
日本 (日本語)
香港特别行政區 (中文)
Visual C# Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Visual C# Developer Center
>
Visual C# Forums
>
Visual C# Language
>
How i check PC config?
Ask a question
Search Forums:
Search Visual C# Language Forum
Search All Visual C# Forums
Search All MSDN Forums
How i check PC config?
Wednesday, November 04, 2009 11:35 AM
Rafael Bastos Vasques
0
Sign In to Vote
how i check PC memory, PC SO, PC harddisk space,pc processor etc..
using c# of course
something like run->dxdiag.
Reply
Quote
Answers
Wednesday, November 04, 2009 12:06 PM
Tamer Oz
MVP
0
Sign In to Vote
Hi,
You should use PerformanceCounter component. It's on toolbox.
Here are some useful links.
http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx
http://msdn.microsoft.com/en-us/library/4y422556.aspx
http://msdn.microsoft.com/en-us/library/s155t6ta(VS.71).aspx
http://www.codeproject.com/KB/dotnet/perfcounter.aspx
For free disk space select CategoryName:LogicalDisk CounterName %FreeSpace
For Ram you can use CategoryName:Memory CounterName:Available MBytes
.....
Marked As Answer by
Rafael Bastos Vasques
Wednesday, November 04, 2009 1:15 PM
Reply
Quote
All Replies
Wednesday, November 04, 2009 12:06 PM
Tamer Oz
MVP
0
Sign In to Vote
Hi,
You should use PerformanceCounter component. It's on toolbox.
Here are some useful links.
http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx
http://msdn.microsoft.com/en-us/library/4y422556.aspx
http://msdn.microsoft.com/en-us/library/s155t6ta(VS.71).aspx
http://www.codeproject.com/KB/dotnet/perfcounter.aspx
For free disk space select CategoryName:LogicalDisk CounterName %FreeSpace
For Ram you can use CategoryName:Memory CounterName:Available MBytes
.....
Marked As Answer by
Rafael Bastos Vasques
Wednesday, November 04, 2009 1:15 PM
Reply
Quote
Need Help with Forums? (FAQ)
© 2009 Microsoft Corporation. All rights reserved.
Manage Your Profile
|
Terms of Use
|
Trademarks
|
Privacy Statement
|
Contact Us