Uipath project folder

Hi

I have deployed 7 8 process on production and always used folder structure like
C:\Automation\processname\data

Always kept all files n folder of project in above path.
And same mentioned in assets. My process runs on fix machine so I create folder structure there …
But now process will run on any machine from pool. So I will have to create folder structure on all machines 4 machines .

I know we can use \data folder default but I have many doubts how to add path in asset n how to write hard coaded in code.
Pls can someone explain …?

@S_Nitin

You can aimply use relative path to access the files and folders for your current project…for example if you have aome file placed in input folder inside data then in path you would use data\input\filename.extension

Also now you need not store this in asset as it is already present in package and would never change till you change the package

One way if you still want to maintain them outside is to have all the files you need in the project folders and in start of automation create the required folders and move the files yhem
If not already present…this way you need not create always and automation would take care of it

Cheers

1 Like

@S_Nitin,

If you are using any folder of the project, you don’t need to maintain it’s path anyehere. Just use relative path like Data\Temp.xlsx

If your process requires some folder structure to run inside Data Folder of project, you can use Create Folder activity to create it in Initialization state of the process.

image

Thanks,
Ashok :slight_smile:

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