how to find the current system date and login accout of the lcoal computer?
In C#.
Thanks for the help
Chris
Re: how to find the current system date and login accout of the lcoal computer?
DateTime.Now for the current system time.
The world holds two classes of men -- intelligent men without religion, and religious men without intelligence. Abu'l-Ala-Al-Ma'arri (973-1057; Syrian poet)
Re: how to find the current system date and login accout of the lcoal computer?
using System;
using System.Security.Principal;
namespace ConsoleApplication1
{
class Class1
{
static void Main(string[] args)
{
WindowsIdentity wi=WindowsIdentity.GetCurrent();
Console.WriteLine(wi.Name);
}
}
}
Good luck
Please rate if you think this response was useful for you.
Have more questions?
Re: how to find the current system date and login accout of the lcoal computer?
thanks for the help.
I got it.
Chris