PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Path HFSQL
Path HFSQL
Débuté par Kim O'Regan, 04 déc. 2021 13:19 - 3 réponses
Posté le 04 décembre 2021 - 13:19
Hi,
How do I specify the dynamic USER Path in the location string for HFSQL?
I tried different system variables but doesn't work. Only if I put my own user in the path.
eg. (REP File) Users C:\Users\"USER"\Data\Users.FIC

I have to use Onedrive and place the files locally. So the path is dynamic depending on the user.

Hope someone can help! :)
Kim
Posté le 05 décembre 2021 - 11:00
Kim O'Regan wrote:
Hi,
How do I specify the dynamic USER Path in the location string for HFSQL?
I tried different system variables but doesn't work. Only if I put my own user in the path.
eg. (REP File) Users C:\Users\"USER"\Data\Users.FIC

I have to use Onedrive and place the files locally. So the path is dynamic depending on the user.

Hope someone can help! :)
Kim


Additional info:
This doesn't work for example.
\\LOCALHOST\C$\%USERNAME%\Data\Users.FIC
Posté le 05 décembre 2021 - 15:56
I'm not sure I understand the question but...

Ibn order to specify where the files are, use hchangerep for HF classic
Posté le 06 décembre 2021 - 08:04
Thanks for the answer!

It wasn't really what I was looking for but solved it anyway!
Now i could use NetworkUser in the path string.

HChangeDir(Users, "C:\Users\" + NetworkUser + "\Data")

Thanks again! :thank you:

Regards
/Kim