4D v18R2, Windows, Citrix
We run a 4D application in a Citrix environment where we need the “client name” of the running client session.
Until now, the only way to get the correct clientname is by launching cmd.exe
$command:="cmd.exe /C echo %ClientName%" $in:="" $out:="" $error:="" SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"true") LAUNCH EXTERNAL PROCESS($command;$in;$out;$error)
I also tried it with the 4D command
but this does not seem to work (not the correct or empty value)
I tried it by getting the environment variable with Win32API
but also this does not seem to be the solution
My question: Does anybody know of a best way to get the correct ClientName in a citrix environment using an out of the box 4D command?