Rename a file using .attribute


#1

Hello,

I have found an oldest file using

File = new DirectoryInfo(myPath).GetFileSystemInfos().OrderByDescending(function(fi) fi.CreationTime).First()

How can I change its name using File.Attribute…?


#3

Hey @mario

well There was a visual basic renamefile method exists but you can use Move Activity with the same file path but with different name in destination property. It will replace that file as well.

Regards…!!
Aksh