I think I need some additional help.
How do I rename the correct files, with the correct string?
The automation must read the file name in the folder.
(I think with an action like this: arrFile = directory.GetFiles(Folder_Path) )
Then, For Each File in Folder_Path…
??
at this point, i have the filename in the folder.
on DB the same name of the file, present in folder and in another column, the name of the file that it will have to assume.
but here i get stuck…
do i need to enter something like this?
For Each File in Folder Path:
if “File Folder Name” = “File Folder Column1 dt”
then
rename - File Folder Name >>> File Folder column2
?
So if you have the old and new file names in db then i hope you can get the data from
Sb using slect into datatable
Then loop theough the datatble and use directory.getfiles("your base folder","*" + currentrow("oldfilecolumn").tostring + "*")(0) to get the first matched file with the given name …next step is to use replace
Previously my assumption was you need to add a specific constant value to all file names so i asked you to use for each file and add the data you need