How to query user's fullname in Win XP Pro?

  • Thread starter Thread starter Rach
  • Start date Start date
R

Rach

Hi there,

Are there any existing generic windows application that I can use to
retrieve the logon user's full name (on Window's XP Professional) via
command prompt? i.e. I want to retrieve the name you see on the 'Windows
Security' dialog when you do a CTRL+ALT+DEL.

p.s: The 'echo %USERNAME%' command gives me only the login name. I want the
full user name.

Thanks much,
-rach
 
Yes there is. Requires some information and programming skills. Find a
book about the Windows API (Application Program Interface) to get the
call which returns this value.

Note: this doesn't seem to be defined as a standard environment variable
(see "set" command for these) so this simple way doesn't seem possible.
Need to find and make the relevant API call.

Hope this is useful to you. Let us know.

rms
 
Back
Top