When i execute an application with Remote Desktop (TS) ,
the function GetEnv( "COMPUTERNAME" ) return the NAME of the SERVER and not the name of the workstation that execute Remote Desktop .
How to know this name ?
Thanks
REMOTE DESKTOP
Re: REMOTE DESKTOP
When on Remote Desktop/Terminal Services/Citrix you can use additional environment variables.
gete( 'SESSIONNAME' ) // This returns the session name you are running under. If it returns anything other than 'Console' then you need to get the clientname
gete( 'CLIENTNAME' ) // This is the local computer name or client.
Try this
gete( 'SESSIONNAME' ) // This returns the session name you are running under. If it returns anything other than 'Console' then you need to get the clientname
gete( 'CLIENTNAME' ) // This is the local computer name or client.
Try this
Code: Select all
cComputer := gete('CLIENTNAME')
if empty( cComputer )
cComputer := gete('COMPUTERNAME')
endif
Re: REMOTE DESKTOP
Thanks for your help .
It works .
Thanks
It works .
Thanks