Click here to Skip to main content
15,908,775 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hii, I'm Newbie in .Net Network Programming,
I Want to create a application to details of Different system on LAN like:
System Name, % CPU Utilisation , % Memory Utilisation

And Disk management information like:
Volume drive letter, Usable Disk Space, Used Disk Space, Free Disk Space

Can u provide some idea or help,
Thanx
Posted

For disk management, herez sample code:
C#
DriveInfo[] drives = DriveInfo.GetDrives();
 foreach (DriveInfo d in drives)
 {
     if (d.IsReady)
     {
         Console.WriteLine("Drive: {0}", d.Name);
         Console.WriteLine("Available free space: {0} bytes\n", d.AvailableFreeSpace);
     }
 }
 Console.ReadKey();


For system info, the below statements fetch:
C#
System.Environment.UserDomainName;
System.Environment.OSVersion.ToString ();
 
Share this answer
 
You can make use of WMI (Windows Management Instrumentation) for fetching the platform related information on the windows platform.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900