%SYN_UNAME

Get the current username

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
user = %SYN_UNAME

Return value

user

The username of the user executing the program. (a)

Discussion

%SYN_UNAME returns the username of the user executing the program. If a blank username is returned, check %SYSERR for the system error code.