Access Automation in different PC

Hello All,
I have designed an Automation, but it was based on the folder location in my PC(example accessing the excel in one particular file path in my PC ). I gave the published file to my friend to test and he cant use it as the folder is not available.
For example is username “C:\Users\USERNAME\Desktop\UiPath_Bot\FILENAME.nupkg”
Other is inside the automation selecting the folder to access the file automatically.

Is there any way in which I can make a general file or file path which can be used in different PC? Or how can I avoid using file path?


You can either use the folder within the project and put the file path as data/input/yourfile.pdf as example or if the process is downloading a file into let’s say the download folder you could assign a variable to:


This would always get the currents users path to the downloads folder.

Hello @iamNairda Thank you for quick reply. But Sorry I didn’t get the first line. My problem is I want that User first keep the file in particular folder. The UiPath code reads the folder and uses that file. Currently its managable in my PC as I have coded it but If the PC changes the user name and thus the file path changes.

Can you share an example if possible? what do you mean by “use the folder within the project”

With the "GetEnvironmentVariables you get the path “C:\Users\Username” in my case it would be “C:\Users\Adrian” as my Username is “Adrian”. Using this you can set any path that is always available on both machines. Like Documents or Downloads. Here’s a picture of how to build it:

For the path within a UiPath project you can reference it by just calling the folders directly, like so:

That’s the output I receive in outputlogs in Studio (both Explanations executed sequentially):

I hope you understand, otherwise you can try and check the attached .xaml file. (2.9 KB)

I was using Studio 2023.4.4

Thanks @iamNairda . Now i got it what you meant. I will try this.

1 Like

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