Rename file?

I want rename file from use variable

FileNewDBT = Directory.GetFiles(“C:\Users\Maria\Downloads”,"*.xls").OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)

to rename = “C:\Users\Maria\Downloads”+system.DateTime.Now.ToString(“dd.MM.yyyy”)+"\DBT.xls"

remark : rename file to DBT.xls

Please guide me about it.


Use Move File activity and give the source file as above and destination as the same path with new Name

Hope this may help you


1 Like

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