Hi All,
Here i am get a Current System Information of Windows Operating System using C#
string sData=string.Empty;
//Get Current User Name of Windows Operating System
sData=Environment.UserName;
//Get Domain Name of the System
sData=Environment.UserDomainName;
//Get System Directory
sData=Environment.SystemDirectory;
//Get Version of Windows Operating System
sData=Environment.OSVersion.VersionString;
//Get NetBIOS Name of Local System
sData=Environment.MachineName;
//Get Current Working Directory(Folder)
sData=Environment.CurrentDirectory;
//Get Current Platform of Windows Operating System
sData=Environment.OSVersion.Platform.ToString();
//Get No.of Processor of Current Machine
int n=Environment.ProcessorCount;
//Get a Time Count Start From System Started (Value comes in MilliSeconds)
long Time=Environment.TickCount;
If you Calculate a Time in Hour means
(Time/(1000*3600) -->we get Total Hours
I hope this helpful.
Cheers :)