How to save the files in Bot created Folder

Hi,

We have a requirement to save the downloaded files in a folder created by Bot while running.

The Bot is able to read a folder with specified Name but the files are not downloading into the folder.

Can anyone suggest the solution for this.

Regards,

@raju_alakuntla,

How your bot is downloading the files? is it through Download file from URL activity or simply clicking on the download button on the webpage and let the browser download it?

In case of Download file from URL you have property Save file as you can put your bot created folder path and file name to save there.

In case of download from browser, you can change the location manually once and then browser will always save the downloaded files to that location.

If you have the URL I would advise to use Download file from URL activity.

Thanks,
Ashok :slight_smile:

Hi @ashokkarale,

We have changed the download location to get a pop-up for save as for every file. But it is saving outside the folder which was created by Bot.

We need the files to save in the folder highlighted here

Hi @raju_alakuntla

Can you share the screenshot of the workflow

Regards,

@raju_alakuntla,

Ok then bot should be entering the full folder path along with this UiPath Bot folder like this.

C:\Users\ashok\OneDrive\Documents\UiPath Bot\yourfile.docx

I think bot is typing C:\Users\ashok\OneDrive\Documents\yourfile.docx that is without the folder name.

Check it.

Thanks,
Ashok :slight_smile:

Hi @lrtetala ,

image

I have created a variable as ““FolderName” for folder and passed the location “Directory.GetCurrentDirectory+”\Downloaded"+File”

What should I pass in the “Use Browser activity”. Can you please let me know

Regards,

In case you are downloading files from any portal or website and wish to save it in a specific folder, simply use “Wait for Download” activity and pass the entire folder path where you wish the file to be saved.

@raju_alakuntla, This is for Selector purpose to indicate the Save as popup.

You should be using a TypeInto activity to type the file path right? int that TypeInto activity check if you have passed the correct folder path or not.

Thanks,
Ashok :slight_smile:

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