How to save downloaded file to c file in uipath?
After downloading file, use Move File activity to move the file and specify source and destination path.
Please check source file path once and in destination, is Timesheet folder name or not ?
Write like this: “C:\Timesheet”
yes. Timesheet is the folder name
but still error? why/
Please find the attached workflow. Its working fine for me. Specify Source and destination folder path correctly.
Main.xaml (6.3 KB)
When i am doing like this in new main project. It’s work.
but when i am trying to move file after i download from browser, it cannot work. why?
Please check after downloading where it is saving and also file name also.
I think you are passing wrong source path.
can i download different file and remove that file to c file? then, what is the source path and destination path i should put? because i want everytime automate download different file and remove to c file.
should i create two new variable name as sourcePath and destinationPath?
Do you know filenames before downloading or not ?
i dont knw the file name before download
@lakshman should i use the for each ?
Sequence.xaml (7.0 KB)
Please find the attached workflow. It will move all excel files from downloads folder to destination folder.
Sequence.xaml (6.1 KB)
when i run this, it show this error. may i knw what is this error mean?
please help me… thanks.
Make sure your robot have write access to the folder.
I think you don’t have access to this path. Try with another folder.
@lakshman how can i downloaded the first file , then i move to c file. Then, i downloaded the second file, second file move to c file by sequence?
If you want to move first file only then try below one:
Directory.GetFiles(folder_path,"*.xlsx").OrderByDescending(Function(d) New FileInfo(d).CreationTime).First