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?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jiteendra SampathiraoPosted Jul 23, 2011, 3:46 AM
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.........