|
-
March 15th, 2002, 12:07 PM
#1
how to find the current system date and login accout of the lcoal computer?
In C#.
Thanks for the help
Chris
-
March 15th, 2002, 03:50 PM
#2
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)
-
March 18th, 2002, 03:11 AM
#3
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?
-
March 18th, 2002, 06:21 PM
#4
Re: how to find the current system date and login accout of the lcoal computer?
thanks for the help.
I got it.
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|