Rajesh Karunakaran
Programmer
Dear all,
I am connecting to a remote server using RDP.
In RDP connection, I have selected the local user C drive to be used from within the server.
If I use GETDIR() from server, I can see the user's local pc C drive.
Now, is there any way to know the local logged in username from within the remote server?
Basically, I want the application in the server to copy a file to the local PC user's 'Downloads' folder.
If I can determine the current local user, then I can construct a destination folder something like '\\tsclient\c\users\rajesh\downloads\\'. Here, as we know, 'rajesh' is the logged in user in the local pc where as the user used to log into the remote server may be different, say, 'UserOne'.
Any thoughts?
Thank you in advance,
Rajesh
I am connecting to a remote server using RDP.
In RDP connection, I have selected the local user C drive to be used from within the server.
If I use GETDIR() from server, I can see the user's local pc C drive.
Now, is there any way to know the local logged in username from within the remote server?
Basically, I want the application in the server to copy a file to the local PC user's 'Downloads' folder.
If I can determine the current local user, then I can construct a destination folder something like '\\tsclient\c\users\rajesh\downloads\\'. Here, as we know, 'rajesh' is the logged in user in the local pc where as the user used to log into the remote server may be different, say, 'UserOne'.
Any thoughts?
Thank you in advance,
Rajesh