Hi
The application on the server needs to read a file in the user's home-dir on the client.
This is after a program was started using 'open on client-side' function.
Something like:
\\tsclient\C\users\<user>\appData\localLow\....
(essentially the HOMEPATH environment variable.)
Any way of finding out what the <user> is on the server?
Any suggestion apreciated.
Thanks
Client Side User Home-Dir?
Re: Client Side User Home-Dir?
Hello,
When you connect using a generated connection client, a file is generated in `C:\AppData\[SESSION]\MyPDFPrinting\clientenvironment.ini` which holds a line`rdpClientPath=` with the information you need.
When you connect using a generated connection client, a file is generated in `C:\AppData\[SESSION]\MyPDFPrinting\clientenvironment.ini` which holds a line`rdpClientPath=` with the information you need.
Olivier
TSplus support team administrator

TSplus support team administrator

Re: Client Side User Home-Dir?
Thank you indeed. A great help.
Just for the records.
The said file is found here:
C:\users\<server-user>\AppData\Roaming\2\MyPDFprinting\clientenvironment.ini
(on my 2016 Server)
Cheers
Urs
Just for the records.
The said file is found here:
C:\users\<server-user>\AppData\Roaming\2\MyPDFprinting\clientenvironment.ini
(on my 2016 Server)
Cheers
Urs
Re: Client Side User Home-Dir?
... however
The \2\, being a Session-ID is variable.
How do I find out that I am running Session=2 ???
The \2\, being a Session-ID is variable.
How do I find out that I am running Session=2 ???
Re: Client Side User Home-Dir?
Eventually found a work-around which seems feasible.
In an autostart-batch on the client I run ' SUBST M: %USERPROFILE% '
Then, on the server doing ' \\tsclient\M\ ' I find exactly what I need.
This works for all users potentially using the client-computer.
Just in case someone else needs this.
In an autostart-batch on the client I run ' SUBST M: %USERPROFILE% '
Then, on the server doing ' \\tsclient\M\ ' I find exactly what I need.
This works for all users potentially using the client-computer.
Just in case someone else needs this.