Uipath and dynamic paths

Hey I am trying to build a robot that simply reads an Excel file. Now I want to share this robot with a coworker, I am sharing the whole project with the Excel file inside.
Problem is, I have to hardcode the Excel file path to read it and this path will probably be different when my coworker downloads it.

What is the solution here? Thanks a lot.

Hey @Gines_Cirera_Dona,

You can create a configuration file, where you can store the path of all the files you are working on with.
Have a look on this thread it will help you out.


1 Like


Hello Gines,
welcome in the UiPath community.

You can also use Environment.CurrentDirectory() method as long as the Excel file is in your project folder. This methods delivers the path to your project folder.

Best regards



This worked, thank you so much.

1 Like

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