How to get 'traces' folder

myndeswx

Client
Регистрация
15.05.2017
Сообщения
402
Благодарностей
89
Баллы
28
Hello, how could we get the 'traces' folder of the running project?

For example on my computer it is
C:\Users\tomaj\OneDrive\Dokumenter\ZennoLab\Traces\testtemplate.zp

As we can see the drive name, user name and the PC language can change, also the template name itself can change over time

So how would you get the traces folder name?
Need it to make sure it runs on clients machine
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 218
Благодарностей
5 843
Баллы
113
C:\Users\{User name}\Documents\ZennoLab\Traces\taskmame
 
  • Спасибо
Реакции: myndeswx

myndeswx

Client
Регистрация
15.05.2017
Сообщения
402
Благодарностей
89
Баллы
28
C:\Users\{User name}\Documents\ZennoLab\Traces\taskmame
Thank you, but I need a way to find it automatically (if possible of course, to avoid user input error)

For example mine is generated in
C\Users\username\OneDrive\Dokumenter\ZennoLab\Traces\templatename.zp

So the pattern 'C:\Users\{User name}\Documents\ZennoLab\' would not work in my case, and I don't know how it will be on the clients computers
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 218
Благодарностей
5 843
Баллы
113
Thank you, but I need a way to find it automatically (if possible of course, to avoid user input error)

For example mine is generated in
C\Users\username\OneDrive\Dokumenter\ZennoLab\Traces\templatename.zp

So the pattern 'C:\Users\{User name}\Documents\ZennoLab\' would not work in my case, and I don't know how it will be on the clients computers
Why does not the pattern work?
You have almost the same path, the only difference is OneDrive, which I suppose because you use Microsoft OneDrive to store files.
On user side, tracing can be found by the same pattern
 

myndeswx

Client
Регистрация
15.05.2017
Сообщения
402
Благодарностей
89
Баллы
28
Ahh , I see, yes the pattern is easy to find by hand, but the thing is I am looking for a way to get the path programmatically( to avoid user error entering the file path)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)