Client Side User Home-Dir?

Get help with troubleshooting issues
Post Reply
ufotech
Posts: 7
Joined: Sat Oct 13, 2018 5:21 pm

Client Side User Home-Dir?

Post by ufotech » Sun Oct 14, 2018 2:10 pm

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

User avatar
admin
Site Admin
Posts: 1649
Joined: Wed Sep 05, 2012 6:38 am

Re: Client Side User Home-Dir?

Post by admin » Mon Oct 15, 2018 10:12 am

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.
Olivier
TSplus support team administrator
Image

ufotech
Posts: 7
Joined: Sat Oct 13, 2018 5:21 pm

Re: Client Side User Home-Dir?

Post by ufotech » Mon Oct 15, 2018 4:49 pm

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

ufotech
Posts: 7
Joined: Sat Oct 13, 2018 5:21 pm

Re: Client Side User Home-Dir?

Post by ufotech » Mon Oct 15, 2018 6:07 pm

... however

The \2\, being a Session-ID is variable.

How do I find out that I am running Session=2 ???

ufotech
Posts: 7
Joined: Sat Oct 13, 2018 5:21 pm

Re: Client Side User Home-Dir?

Post by ufotech » Tue Oct 16, 2018 7:48 am

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.

Post Reply