Rename a file using .attribute


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…?

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.


1 Like