Automating the naming of PDFs

naming
uiautomation
pdf

#1

Hi,

There are 1000 PDFs in my folder, I have 1000 names in the CSV file as well. I want to rename these PDFs with the 1000 names from CSV file. Can anyone help me in doing this.

Thanks,
Karthik


#2

@karthik_venkat, Move File even does the work of renaming the files. You can use it to achieve.

Regards,
Dominic :slight_smile:


#3

Hi Karthik,

You can follow these steps,

1.Use read range to read the files names in CSV file and put into datatable.

  1. Use for-each-row(say row) activity to read each pdf file names from each row of datatable.

  2. In side for each, put “Move File activity, and give file name like “C:\Documents”+row.toString+”.pdf".

Let me know if it worked or not. :slight_smile:


#4

Thanks Dominic and Akshay. Will work on it and tell you.