From: Roy Terry on
On Apr 1, 7:02 pm, APN <palm...(a)yahoo.com> wrote:
> tcl_platform(user) will only provide the login name, I believe, not
> the real name associated with the login id.
Honestly, I'm puzzled by the term "real name" associated with a login.
How
could the OS possibly know? As I now bring up the User Accounts in XP,
there is
not even a field to enter "real name" or anything like it.
>
> On Mar 31, 10:23 pm, Roy Terry <royte...(a)earthlink.net> wrote:
>
> > On Mar 31, 7:03 am, Fredrik Karlsson <dargo...(a)gmail.com> wrote:
>
> > > Dear list,
>
> > > This may or may not be a questions connected to Tcl, but I was
> > > searching for a way to extract the Full Name / Real Name of the
> > > currently logged in user on a Windows computer.
>
> > > On Mac / some UNIX variants, `id -P` seems to give something you could
> > > extract the information from, but I wonder if there is something as
> > > general for Windows?
>
> > > Does anyone know?
>
> > > /Fredrik
>
> > Look at the Tcl-provided array entry: tcl_platform(user)
>
>

From: George Petasis on
στις 31/3/2010 5:03 μμ, O/H Fredrik Karlsson έγραψε:
> Dear list,
>
> This may or may not be a questions connected to Tcl, but I was
> searching for a way to extract the Full Name / Real Name of the
> currently logged in user on a Windows computer.
>
> On Mac / some UNIX variants, `id -P` seems to give something you could
> extract the information from, but I wonder if there is something as
> general for Windows?
>
> Does anyone know?
>
> /Fredrik

I think it is possible with the twapi extension:

http://wiki.tcl.tk/9886
http://twapi.magicsplat.com/users.html#get_user_account_info

George
From: APN on
On XP, Adminstrative Tools->Computer Management->Local Users. Click on
a user name to bring up Properties dialog. The General Tab has a "Full
Name" and "Description" field.

/Ashok

On Apr 2, 10:05 pm, Roy Terry <royte...(a)earthlink.net> wrote:
> On Apr 1, 7:02 pm, APN <palm...(a)yahoo.com> wrote:> tcl_platform(user) will only provide the login name, I believe, not
> > the real name associated with the login id.
>
> Honestly, I'm puzzled by the term "real name" associated with a login.
> How
> could the OS possibly know? As I now bring up the User Accounts in XP,
> there is
> not even a field to enter "real name" or anything like it.
>
>
>
> > On Mar 31, 10:23 pm, Roy Terry <royte...(a)earthlink.net> wrote:
>
> > > On Mar 31, 7:03 am, Fredrik Karlsson <dargo...(a)gmail.com> wrote:
>
> > > > Dear list,
>
> > > > This may or may not be a questions connected to Tcl, but I was
> > > > searching for a way to extract the Full Name / Real Name of the
> > > > currently logged in user on a Windows computer.
>
> > > > On Mac / some UNIX variants, `id -P` seems to give something you could
> > > > extract the information from, but I wonder if there is something as
> > > > general for Windows?
>
> > > > Does anyone know?
>
> > > > /Fredrik
>
> > > Look at the Tcl-provided array entry: tcl_platform(user)

From: Roy Terry on
On Apr 2, 10:36 pm, APN <palm...(a)yahoo.com> wrote:
> On XP, Adminstrative Tools->Computer Management->Local Users. Click on
> a user name to bring up Properties dialog. The General Tab has a "Full
> Name" and "Description" field.
>
> /Ashok
>
> On Apr 2, 10:05 pm, Roy Terry <royte...(a)earthlink.net> wrote:
>
> > On Apr 1, 7:02 pm, APN <palm...(a)yahoo.com> wrote:> tcl_platform(user) will only provide the login name, I believe, not
> > > the real name associated with the login id.
>
> > Honestly, I'm puzzled by the term "real name" associated with a login.
> > How
> > could the OS possibly know? As I now bring up the User Accounts in XP,
> > there is
> > not even a field to enter "real name" or anything like it.
>
> > > On Mar 31, 10:23 pm, Roy Terry <royte...(a)earthlink.net> wrote:
>
> > > > On Mar 31, 7:03 am, Fredrik Karlsson <dargo...(a)gmail.com> wrote:
>
> > > > > Dear list,
>
> > > > > This may or may not be a questions connected to Tcl, but I was
> > > > > searching for a way to extract the Full Name / Real Name of the
> > > > > currently logged in user on a Windows computer.
>
> > > > > On Mac / some UNIX variants, `id -P` seems to give something you could
> > > > > extract the information from, but I wonder if there is something as
> > > > > general for Windows?
>
> > > > > Does anyone know?
>
> > > > > /Fredrik
>
> > > > Look at the Tcl-provided array entry: tcl_platform(user)
>
>

Ah. Right you are.
From: Larry W. Virden on
On Apr 2, 1:05 pm, Roy Terry <royte...(a)earthlink.net> wrote:
> On Apr 1, 7:02 pm, APN <palm...(a)yahoo.com> wrote:> tcl_platform(user) will only provide the login name, I believe, not
> > the real name associated with the login id.
>
> Honestly, I'm puzzled by the term "real name" associated with a login.
> How
> could the OS possibly know? As I now bring up the User Accounts in XP,
> there is
> not even a field to enter "real name" or anything like it.


I would think that, on relatively recent Windows systems, the user's
human, public, real name would be an Active Directory property in the
user object associated with the login.

Certainly when I go into SharePoint and other MS applications, they
display my human name rather than my computer login.