Getting the Current User Name On Windows

Klaus Major klaus at
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


Klaus Major
klaus at

More information about the Use-livecode mailing list