# RDS / TS - a local ini file..

**URL:** <https://forum.xojo.com/t/rds-ts-a-local-ini-file/16475>\
**Category:** Windows\
**Created:** [May 13, 2014, 7:12am UTC](https://forum.xojo.com/t/rds-ts-a-local-ini-file/16475 "2014-05-13T07:12:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamish\_Steiner](https://forum.xojo.com/letter_avatar_proxy/v4/letter/h/f9ae1b/32.png) [@Hamish\_Steiner](https://forum.xojo.com/u/Hamish_Steiner)\
**Post date:** [May 13, 2014, 7:12am UTC](https://forum.xojo.com/t/rds-ts-a-local-ini-file/16475/1 "2014-05-13T07:12:12Z")

</div>

More RDS joy.  
I want to have a client config file., Rather than a user configuration file

I have looked at using the client name - which is probably unique (not 100% sure), and using that to creat a config file in the special folder

ie if a users is using RDS from client ie[computer23] , the program will use an config file that I write for that client, eg config\_computer23.ini

if I use the special folder below  
SharedPreferences which on windows is \ProgramData\

is there a better way to do this? I can find lots of ways to have a user config file, but I want the config file I make to be specific to that client .

The only problem I see with my way is that is 2 or more clients have the same client name on RDS they will get the same config file.

Hamish

---

<div class="post-metadata">

**Author:** ![Paul\_Budd](https://forum.xojo.com/user_avatar/forum.xojo.com/paul_budd/32/799_2.png) [@Paul\_Budd](https://forum.xojo.com/u/Paul_Budd)\
**Post date:** [May 13, 2014, 7:24am UTC](https://forum.xojo.com/t/rds-ts-a-local-ini-file/16475/2 "2014-05-13T07:24:07Z")

</div>

Off the top of my head include their logged on username as part of the filename.

---

<div class="post-metadata">

**Author:** ![Hamish\_Steiner](https://forum.xojo.com/letter_avatar_proxy/v4/letter/h/f9ae1b/32.png) [@Hamish\_Steiner](https://forum.xojo.com/u/Hamish_Steiner)\
**Post date:** [May 14, 2014, 11:56am UTC](https://forum.xojo.com/t/rds-ts-a-local-ini-file/16475/3 "2014-05-14T11:56:47Z")

</div>

But I want it to be machine dependent, I dont care who is logged on.

---

<div class="post-metadata">

**Author:** ![Russ\_Lunn](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@Russ\_Lunn](https://forum.xojo.com/u/Russ_Lunn)\
**Post date:** [May 14, 2014, 4:26pm UTC](https://forum.xojo.com/t/rds-ts-a-local-ini-file/16475/4 "2014-05-14T16:26:45Z")

</div>

well…

In the RDS Session the environment variable “CLIENTNAME” will tell you the name of the computer that connected.

bear in mind that you can (under certain conditions) have two computers connect with the same name though…

---

<div class="post-metadata">

**Author:** ![Hamish\_Steiner](https://forum.xojo.com/letter_avatar_proxy/v4/letter/h/f9ae1b/32.png) [@Hamish\_Steiner](https://forum.xojo.com/u/Hamish_Steiner)\
**Post date:** [May 15, 2014, 6:22am UTC](https://forum.xojo.com/t/rds-ts-a-local-ini-file/16475/5 "2014-05-15T06:22:49Z")

</div>

I was worried that may be the case. I hope that’s not common.

Im just going to parse the CLIENTNAME and use that as the name of a config file , see how that works.  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:13pm UTC](https://forum.xojo.com/t/rds-ts-a-local-ini-file/16475/6 "2020-10-29T17:13:26Z")

</div>


