About the path

Hi i a m working on something where i have to use folders and they have files
now thinking of when i will deploy this on Orchestrator
what should i keep in my mind
if someone can help

  1. all folder that has files will be inside project folder only do i need to create the folder on VM
  2. to get the files created inside those folder i have given the path as foldername/filename.xlsx
  3. to read the file in for each condition i have given like for each :
    directory.getfiles(““C:\Users"+environment.username+”\OneDrive\Documents\UiPath\processname”)

will the above will work when i deploy it on orchestrator or i need to make some changes
also how to manage the onedrive thing in path

1 Like

If it’s within project folder no need to create separate folder
If you are referring to any other files from different folder that has to be created in your end environment as well
Rest is fine

This would work as it gets compressed within nupkg file and bot workflow will be able to access it

This will work too in user machine as you have given environment as reference

Just small correction
U missed the back slash

Directory.GetFiles(“C:\Users\"+environment.username+”\OneDrive\Documents\UiPath\processname”)

So you are good to go

Hope this clarifies

Cheers @mint

1 Like

@Palaniyappan thanks for the help
one thing is i have doubt for is about onedrive that is there in path what if that is not there
Directory.GetFiles(“C:\Users"+environment.username+”\OneDrive\Documents\UiPath\processname”)

how can i take of that

1 Like

It has to be synced on to your new VM server as well
So that bot can refer that as a folder in house @mint

what will you suggest @Palaniyappan
should onedrive to be there or not
as onedrive can cause failure when writing excel back to back as it starts sync them

1 Like

It has to be there created in your new VM servers if the one drive is not synced
@mint

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