Click here to Skip to main content
13,054,615 members (61,076 online)
Rate this:
Please Sign up or sign in to vote.
See more:

We have a couple of windows servers and I want to get the information of the windows servers using either c# or Python script. The information I want to get is the disk space (image like the one we see in windows explorer) and the error logs of the services of the server. If any one can give me any leads on this, it would be great. We are looking to develop a script which can give us this information. I want to save the error logs in a text file format and the disk space as a .jpeg image, on the local machine.
Please also let me know which language would be best for this Python scripting or c#.

Posted 23-Jun-13 17:01pm
Updated 23-Jun-13 17:54pm
Ron Beyer 23-Jun-13 23:07pm
You would like to display it how? Web page? Application? Windows Forms? WPF?
GB_1114 23-Jun-13 23:14pm
Hi, Sorry I forgot to mention this, The error log as a text file and the disk space as a .jpeg image saved on local machine.
Ron Beyer 23-Jun-13 23:28pm
You still didn't answer the question though, how do you want to display it?
GB_1114 23-Jun-13 23:31pm
Sorry , my bad, I have modified the question.. you have any idea how to get this information?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


how to calculate free disk space?

SystemInformation Class

Reading Event Log Entries

And you can create a Simple Console Application and Install it on the servers or
Create Windows Service and save the logs in a specific folder or path.

For having a visual chart of disk information, look at this: Disk Size Explorer
Or: An Implementation of System Monitor
GB_1114 25-Jun-13 12:31pm
Hello Shahin,
Thanks for the reply and the links, can you please let me know how to get an image of the disk the one we see when we click my computer. secondly, I will have to do a remote access of the servers and get this information for their disk space and error logs. Would these links be useful in that? Thanks again for the reply.
Shahin Khorshidnia 25-Jun-13 13:16pm
1. Remoting access to server is another subject and you don't have to code for it. Use Remote Desktop Connection (
2. For Image of the disk space please look at the updated answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 25 Jun 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100