Get user login name from MEL?

Is there a way for MEL to retrieve the name of the currently logged in user under windows?

If you're on Unix or Windows with the Tcsh shell installed, you can do a system call to the 'whoami' command. Don't know if there's an equivalent default windows command.

Hope this helps.

-James

whoami works in the NT console

you could use:
getenv "USER";

On windows this returns the name of the person logged in.

--g

getenv "USER"

works on all platforms on which Maya runs.

-- Mark