I want show by using asp.net
Server Disk Spaces
1) total disk space
2) used disk space
There are 2 server
1) Database Server
2) Web Server
Both Drives spaces i have to show by using Pie Chart
How can i done it?
Show Disk Space of Server drive
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 22, 2011, 11:46 PM EDT
To get info of Drives:
using System; using System.IO;
class Test
{
public static void Main()
{
DriveInfo[] allDrives = DriveInfo.GetDrives();
foreach (DriveInfo d in allDrives)
{
Console.WriteLine("Drive {0}", d.Name);
Console.WriteLine(" File type: {0}", d.DriveType);
if (d.IsReady == true)
{
Console.WriteLine(" Volume label: {0}", d.VolumeLabel);
Console.WriteLine(" File system: {0}", d.DriveFormat);
Console.WriteLine( " Available space to current user:{0, 15} bytes", d.AvailableFreeSpace);
Console.WriteLine( " Total available space: {0, 15} bytes", d.TotalFreeSpace);
Console.WriteLine( " Total size of drive: {0, 15} bytes ", d.TotalSize); } } } }
Source: MSDN
Refer this Link: ( Pie Chart )
At This code steps:
string[] xValues = { "A", "B", "C", "D" };
int[] yValues = { 20, 30, 50, 40 };
you need to store the values.So store total space and free space etc details as variables and store it in arrays as shown above..
i hope this help you.........