Thursday, 19 September 2013

Batch .BAT script to rename files

Batch .BAT script to rename files

Im looking for a batch script to (recursively) rename a folder of files..
Example of the rename: 34354563.randomname_newname.png to newname.png
I already dug up the RegEx for matching from the beginning of the string
to the first underscore (its ^(.*?)_ ), but cant convince Windows Batch to
let me copy or rename using RegEx.

No comments:

Post a Comment