Copy a file (which has the date changing every day by a simple title

I would like to copy the users-2020-04-27-063645.xlsx file (which has the date changing every day by a simple title: users) . Thanks to your help

@Al_Bert,

First get all files from that folder using below,

strArray = Get.Directories(“folder path”, “*.xlsx”)

For each item in strArray{
copy activity - supply two properties source and dest
to source - provide item
to dest - provide your path wherever u want with new name
}

Cheers,
Pankaj

Hi @Al_Bert ,

Can u explain your Query in a bit detail.

the users-2020-04-27-063645.xlsx file (which has the date changing every day by a simple title: users.xlsx) .

You’ve a “main.xaml” with an example?

@Al_Bert,

Below screenshot will help you out…

Cheers,
Pankaj

Ok , I try

To the directory :
Get.Directories(“C:\Users\fralexandrc\Documents\UiPath\Test Process Excel ASS010-AssetChanges_SCH_Last6months FINAL\Test Process Excel ASS010-AssetChanges_SCH_Last6months\Ressources”, “users-202*.xlsx”)

What do you think about?

@Al_Bert,

That’s correct… u rock :slight_smile:

Cheers,
Pankaj

No, same problem. Can you download your example in screenshot? Thanks

Thanks to your help Pankaj . All is OK. I did it for 6 files and all are good. :+1:

1 Like

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