Re: current login

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jason (jlewis_at_hotmail.com)
Date: 02/18/05


Date: Fri, 18 Feb 2005 12:35:11 +0100

Hi Nikos,

Thanks for tip. I agree that normal users don't know how to change it. Do
you also know to get the hostname?

Greetings,

J
"Nikos Yannacopoulos" <nyannacoREMOVETHISBIT@in.gr> schreef in bericht
news:eyemFvaFFHA.3824@TK2MSFTNGP10.phx.gbl...
> Jason,
>
> Not sure if this will work under Novell, but as far as Windows goes:
>
> Environ("UserName")
>
> will return the Windows login name.
>
> It can be argued that environment variables are fairly easy to change, so
> some advise to use an API call instead, in order to retrieve the Windows
> login name. The counter-argument is that hardly any user will know how to
> do that, even if they know it's being used, but if you want to go by the
> book you can find the code in:
>
> http://www.mvps.org/access/api/api0008.htm
>
> HTH,
> Nikos
>
> Jason wrote:
>> Hi,
>>
>> I was wondering how i could use the current login in a textbox. I know
>> the currentuser() gives me e.g. 'Admin' if no security is set up.
>>
>> But how can i get the login and/or hostname from windows (or if logged in
>> through novell)?
>>
>> Greetings,
>>
>> J



Relevant Pages

  • RE: Folder Permissions
    ... Dunno if this will help you or not, but Windows won't let Limited User ... > Windows refused and said I needed to do it as the administrator. ... The problem is that now, when the normal users run the application, ... > just the folder or to the folders and all subfolders and files. ...
    (microsoft.public.windowsxp.basics)
  • Folder Permissions
    ... "basics" group, right? ... Windows refused and said I needed to do it as the administrator. ... just the folder or to the folders and all subfolders and files. ... But the normal users still can't save their settings. ...
    (microsoft.public.windowsxp.basics)
  • Re: Great SWT Program
    ... exactly the "normal users" you seem to be speaking on behalf of. ... I haven't watched professional developers using Windows. ... system (such as one running desktop-oriented Linux distribution) ... The people interested in the text-mode stuff aren't ...
    (comp.lang.java.programmer)
  • Re: Great SWT Program
    ... exactly the "normal users" you seem to be speaking on behalf of. ... Hence lighting it on fire instead? ... more "normal" or familiar to a Windows user or whatever. ... The people interested in the text-mode stuff aren't ...
    (comp.lang.java.programmer)
  • Re: SSH root login with keys only
    ... Root will be able to login only by using keys ... Normal users will still be able to use pam/keyboard-interactive ...
    (freebsd-questions)