I want to rename the file which is downloaded to downloads folder.
Steps I followed:
Using Assign activity, I get the latest downloaded file using
str = String.Join("",Directory.GetFiles(dirFilepath_Source,File_Type,SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Take(1))
Using Move Activity, source location to destination location folder.
Here source location as “str” the place where downloaded file available but not sure on the filename and its randomly generated.
After download, reading one more data from the application and saving in a “variable”.
Rename file should look like “Variable”_Filename.
My requirement is to rename the filename and then move (or) move and then rename.
I am not able to rename the file. Please suggest.