Is there any way/activity to get the folder path of the UiPath Project?

Hi all. I am trying to upload a few files from my system on google drive. What my project does is type the file path in the File name dialog box and click open. Now, if I send this program to some other person and if he/she tries to upload a file from his/her system, the file path might be different than mine and the program will not work. So, I want to keep that file (file to be uploaded on google drive) inside the uipath project folder. Now, I just want to get the path of UiPath Program. Please tell me if my post sounds ambiguous. Thanks in advance for any kind of help.

Hi @Muhammad_Bilal2

Try this expression to get the current Uipath project location

IO.Directory.GetCurrentDirectory

Environment.CurrentDirectory

Regards
Gokul

Thank you for your response. Under which activity should I use this expression?

Hi @Muhammad_Bilal2

Use Assign activity

LHS → Create an variable
RHS → Environment.CurrentDirectory

image

Regards
Gokul

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.