Getting the Current User Name On Windows

Klaus Major klaus at major-k.de
Fri Oct 19 10:31:27 EDT 2007


Hi Dave,

> Hi,
>
> I'm using the "whoami" shell  function to return the current user  
> name on the Mac.

You can have this one even without using shell!

...
put $USER into tCurrentuser
...
does the same in Rev, at least on OS X :-)

> Does anyone know the equivalent code for Windows?
>
> Thanks a lot
> All the Best
> Dave

Best

Klaus Major
klaus at major-k.de
http://www.major-k.de





More information about the use-livecode mailing list