It looks like you're new here. If you want to get involved, click one of these buttons!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Net;
namespace SystemInfo
{
class Program
{
static void Main(string[] args)
{
PerformanceCounter cpuCounter;
PerformanceCounter ramCounter;
cpuCounter = new PerformanceCounter();
cpuCounter.CategoryName = \"Processor\";
cpuCounter.CounterName = \"% Processor Time\";
cpuCounter.InstanceName = \"_Total\";
ramCounter = new PerformanceCounter(\"Memory\", \"Available MBytes\");
Console.WriteLine(\"PC Name: \" + System.Environment.MachineName);
Console.WriteLine(\"Operating System: \" + System.Environment.OSVersion);
Console.WriteLine(\"64Bit True/False : \" + System.Environment.Is64BitOperatingSystem);
Console.WriteLine(\"User: \" + System.Environment.UserName);
Console.WriteLine(\"Processors: \" + System.Environment.ProcessorCount);
Console.WriteLine(\"Domain Name: \" + System.Environment.UserDomainName);
Console.WriteLine(\"CPU Usage: \" + cpuCounter.NextValue() + \"%\");
Console.WriteLine(\"RAM Usage: \" + ramCounter.NextValue() + \"MB\");
WebClient wc;
wc = new WebClient();
Console.WriteLine(\"IP Address: \" + wc.DownloadString(\"http://whatismyip.com/automation/n09230945.asp\"));
Console.ReadLine();
}
}
}