How to reach process home directory

Hi. Does anyone know how can I reach home directory inside my process?
I’ am using this path

image

but it’s wrong when trying to run process from PROD environment.

Hey!

Which one is your home directory?

The above expression will give you the folderpath but the expression should like this

assign strFolderpath = "C:\Users\okalinic\Documenets\UiPath\PlasiraniSaldirani\PlasiraniKrediti\"

Regards,
NaNi

Hi,

Can you try the following expression?

System.IO.Path.Combine(System.Environment.GetFolderPath(Environment.SpecialFolder.Personal),"UiPath\PlasiraniSaldirani\PlasiraniKrediti\")

Regards,

maybe you can clear more your definition of home dir

When it is about your user dir then have a look at @Yoichi post

When the directory of the UiPath Project/Process is meant have a look at
Environment.CurrentDirectory

1 Like