andrewglendean
asked on
Visual C# advice needed, retreiving windows system information.
Hello all,
I'm a network admin trying to dabble in C# to automate some of my maintenance duties.
I need some pointers on writing a windows application in visual studio 2005 C# that can retreive system statistics (like diskspace, cpu utilisation, memory free) and write the results to an excel spreadsheet or better a sql database.
I am more concerned about the retreval of system info at this stage.
I am reading the Visual studio step by step book at the moment, but need a kick in the right direction.
I look forward to everyones suggestions.
I'm a network admin trying to dabble in C# to automate some of my maintenance duties.
I need some pointers on writing a windows application in visual studio 2005 C# that can retreive system statistics (like diskspace, cpu utilisation, memory free) and write the results to an excel spreadsheet or better a sql database.
I am more concerned about the retreval of system info at this stage.
I am reading the Visual studio step by step book at the moment, but need a kick in the right direction.
I look forward to everyones suggestions.
I don't know if this is more than what you want, but take a look at the System.Diagnostics namespace: http://msdn2.microsoft.com/en-us/library/system.diagnostics.aspx
the article shows this with vs 2003. and it displays all the information you get in system information console
http://www.codeproject.com/csharp/NitinSystemInfo.asp
Since you're new to C# and showed interest in storing your data in SQL server, here's a great helper class from Microsoft that fully automates saving and loading data to SQL server.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/daab.asp
Data can be read and written in 1 line of code (with the right parameters) using the methods in this class.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/daab.asp
Data can be read and written in 1 line of code (with the right parameters) using the methods in this class.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
? ? No comment from Author
ASKER
Sorry guys, I've been busy with other matters. Thanks to all. I shared my results when ready.