Hey
I need to rename files I’m downloading from a search in an excel.
Search from column B and if found, download and rename with the contents of all columns separated by an underscore keeping the extension.
Hey
I need to rename files I’m downloading from a search in an excel.
Search from column B and if found, download and rename with the contents of all columns separated by an underscore keeping the extension.
use a read range activity, then a for each row, then a for each file in folder to loop into the files, inside that use an if activity to check if the curretFile.FullName.containst(CurrentRow.toString) if true, the use rename file activity passing in the file propertie the currentFile.FullName and in the new Name pass all of the rows, example currentRow(“documento”).toString + “" + currentRow(“numero_nf”).tostring + "” + currentRow(“serie_nf”).tostring… ETC
hope it helps
regards!
My idea is to rename it right after the download because then I’m going to move the renamed file to another directory.
Because the search I do doesn’t match the name of the file I download, and the filenames don’t follow a pattern
hey
it should be if you want seperate by underscore FolderPath +
row(0).ToString + "_"+ row(1).ToString + "_" + row(2).ToString
if you dont want any sepataron just concat all the rows like: FolderPath + row(0).ToString + row(1).ToString + row(2).ToString
… etc
regards
hey
just add the extension in the final ex: row(0).ToString + "_"+ row(1).ToString + "_" + row(2).ToString + ".pdf"
regards
are files with different extensions pdf JPG jpeg png etc
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.