%SYN_UNAME

Get the current username

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
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.