How do I change win10 folder names from YY (01) to YYYY (2001)

Good day all, this is my first post.

EXAMPLE :
I have a win10 folder named: 00-02-03-Leander-Nick at park-etc
In this folder are old JPG photos of my grandson Nick and myself fishing at a park in Leander, Tx.
I started using YY long before the year 2000, back in 1968 , we never thought about 2000 back then:-)

After 2000, all fiolders start with YYYY. ( I have about 60TB of files to archive.)

QUESTION:
Can I use Advance Renamer to batch convert all YY folders to YYYY ?
After converting, the above example folder would be: 2000-02-03-Leander-Nick at park-etc
which will auto sort all folders into date order.

THANKS, Gene






Reply to #1:

Hi Gene, welcome, my apparently-fellow-Texan!

It's really a piece o' cake, my friend. If it were me, I'd do it in two steps. First convert all "00-nn-nn"-type names to 2000-..., then convert all other two-digit-start filenames to "19-nn-nn". Here's one way to do that (there are a number of ways, but this is a simple one). We'll get your toes in the ARen water :). I'm assuming you've read enough of the user guide to add methods and files to ARen, and that you are using the latest version ARen.

In a blank ARen window, add a "Replace" method and set it up thusly:

Replace: ^00-
Replace with: 2000-
Occurrence: All or 1st
Case sens.: (doesn't matter)
Use regular expressions: CHECKED
Apply to: Name

Now add another replace method:

Replace: ^(\d\d)-
[make sure those slashes are backslashes]
with: 19$1-
Everything else is set up like the first one. Make sure there are no spaces in any of your entries.

Now add your files and review the "New filename" column to make sure it's all copacetic. You should have everything come out with the dates like you want. If you are running on a NAS or disk array, which it sounds like you are, keep your batches around 5 to 10k for reasonable processing speed (the default limit is 25,000 files; if you find your system up to it you can go up on the files-per-batch, but it gets harder to check. Use small batches until you are sure the methods do exactly what you want).

Screenshot: https://drive.google.com/file/d/1q5sO6c_J1xXbHVP8S6lbYe-qRXK blqAy/view?usp=sharing

In regex the caret (^) mark asserts that the next characters have to occur only at the start of the filename. In the second replace, the parentheses create a "numbered capture group" that can then be used in the "Replace with:" section (it's the first-and only- capture group, and is denoted in the Replace with as "$1". "\d" denotes one and only one digit character, hence the "\d\d" to capture the two. The dash is included to keep the methods from replacing any four-digit years.

Let us know if you have any problems with this, or if you need any more assistance.

Hasta la vista buckaroo!
DF
Reply to #2:

Thanks, DF

I really appreciate your help!!!

I was not able to make your screenshot work.

From the Screenshot, it looks like the 00-02-03-Leander-Nick at park-etc is a jpg, but it is not.
It is only the folder names that I wanted to change. It should be just 2000-02-03-Leander-Nick at park-etc

Gene


Reply to #3:

Hey Gene,

Sorry, I totally missed that you were dealing with folders, but it doesn't matter. Files and folders can be renamed with the same methods. When I create folders with those names and drag them in, I get exactly the same results. Just drag your folders into ARen, then tell the little popup screen to load folders. Note that right above the "files" list, at the far left next to the method list, there are two informative buttons that tell you whether you are working on files or folders.
https://drive.google.com/file/d/1B6liI4z5igR-b7gtQjRLiJ5bkaF 8KXwL/view?usp=sharing
When you load folders it should automatically show folders (unless you have also loaded files, in which case I think it defaults to showing the files pane). No matter, though, just switch to folder view. By the way, there's a "Clear" button on the List menu that will clear either pane, depending on which has focus.

Be sure to save your method batch to reuse later! :)

Good luck, let me know how that goes.

Best,
DF