Hi. Sorry if this has been asked before - I searched, but couldn't find anything on it.
I have a bunch of files at work (mixed in with others) where the square brackets "[]" are included in the filename.
I'm trying to figure out how to do some renaming stuff on all files EXCEPT those files.
For example:
Ledger_04-08-2016_Sans_Pers_Info.xls
Agenda items from April 11, 2016 luncheon.doc
Legal notes [Don'tModify] April 2016 - AZD .txt
I want to re-name the first two files, and leave the last one alone. (Note that this is a simple example, the actual filenames get much stranger, and the only reasonably consistent thing is that files with notes [in brackets] shouldn't be messed with).
I've tried about a thousand patterns and such, and they all seem to fail when it comes to square brackets. Any help?
Thanks!
I have a bunch of files at work (mixed in with others) where the square brackets "[]" are included in the filename.
I'm trying to figure out how to do some renaming stuff on all files EXCEPT those files.
For example:
Ledger_04-08-2016_Sans_Pers_Info.xls
Agenda items from April 11, 2016 luncheon.doc
Legal notes [Don'tModify] April 2016 - AZD .txt
I want to re-name the first two files, and leave the last one alone. (Note that this is a simple example, the actual filenames get much stranger, and the only reasonably consistent thing is that files with notes [in brackets] shouldn't be messed with).
I've tried about a thousand patterns and such, and they all seem to fail when it comes to square brackets. Any help?
Thanks!