Getting the Current User Name On Windows
Ken Ray
kray at sonsothunder.com
Fri Oct 19 12:07:20 EDT 2007
On Fri, 19 Oct 2007 16:31:27 +0200, Klaus Major wrote:
> 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?
Actually for Windows its $USERNAME...
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list