Rename PDF files accessing through directory.getfiles

Hi all,

in for each loop i am accessing a number of Pdf files for performing various activities.
after performing all activities i need to rename the same file.

i am accessing the files using directory.getfiles("")

please help me with it

use ‘move file’ activity to rename a file.

Hi @jishnupnair1996,

Please use ‘invoke method’ activity with target type “System.IO.File” and method name “Move”. Also pass the parameters, your old file name and new file name as string.

Warm regards,
Nimin

Have u tried specifying the file extension also in the properties of the of the move file activity.

Thanks @Tiberiu_Niculescu

there are some unwanted elemets in file path that i have given. because of that the error is throwing

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.