by smeyyappan@gmail.com » Sat Aug 10, 2019 8:07 pm
Thank you for taking time to reply.
I am trying to rename a set of files under a watched folder and its subfolders for names that match StringA_StringB_StringC.PDF to StringA.PDF_StringB_StringC. This may seem a weird requirement. This is because Application A supplies StringA.PDF to Application B which needs to applend String B and String C, but should not modify the base name preceding.PDF. Application B has been upgraded after which we lost this behavior.
I was able to figure out the regular expression that achieves this in the base folder and all subfolders. However it works only interactively. The requirement is to watch the base folder and subfolders and rename as soon as (short delay is fine). they appear.
I tried to launch BRU from command line assuming it can run un attended from a batch command, but it only launches the tool with the saved favorite BRU file.
Any help would be appreciated. I wish I knew a bit more of Power Shell.
Thanks for your time.
Kind Regards
MEY