All of the examples on the forum appear to use loops, which I don't think is required in this instance -- and yet I just can't find a solution.
I'm forced to do this in a script because I need to execute over 100k+ files. Because XYplorer doesn't allow selecting a folder and recursively renaming below this, I would have to select all files -- which essentially times-out/locks-up due to the large number of files.
I thought I could do something simple, like:
Code: Select all
$files = <get SelectedItemsPathNames>;
rename r, "\W*(remove1|remove2|remove3)\W* > ", $files;
I'd just like to drop a folder on my .xys script and have it apply a Regex rename across all files recursively below that folder.
Is my belief wrong; is this not something that can be done in two lines without looping?
Thank you in advance!