Fallow the steps below. If I helped you, please mark it as solved.
Step 1
Assign: Create a files variable of type Array of String and assign it the value:
Directory.GetFiles(“FolderPath”, “Interview.pdf”)
This will return all files that contain “Interview” in the name.
Step 2
For Each: Iterate over the files array to rename the files:
TypeArgument: String
Step 3
Assign: Inside the For Each, create a counter variable (initialize outside the loop).
Assign counter = counter + 1 inside the loop to count the files.
Step 4
Move File: Rename the file using Move File.
Path: The full path of the current file.
Destination: The new name of the file, for example:
Path.Combine(“FolderPath”, “form_” + counter.ToString + “.pdf”)