Rename Files in a folder with specific format

Good Afternoon, I have some pdf’s with the following format 1027920167_U5RDD.PDF . I would like to remove everything after the “" and replace with "0”. SO the result for this file should be 1027920167_0_.PDF . Any assistance is appreciated.

Welcome to the forum

not the most elegant approach but working:
yourstringVar.Split("_"c)(0) + "_0_.PDF" will return the new filename

1 Like

Thank You for your help sir.

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