My Windows 2000 server has about 500 folders with 2000 files.
I want to change the naming convention so dates are yyyy-mm-dd instead of the current variety of mm-dd-yy.
The input names can be mm-dd-yy m-d-yy mm-d-yy or m-dd-yy.
The delimiters can be spaces, letters etc. Basically anything except a number.
Both folders names and file names have to be changed.
old name new name
test 03-05-04trial1 | test 2004-03-05trial1
test3-05-04 after 3-01-04 | test2004-03-05 after 2004-03-01
test 3-5-04 trial3 | test 2004-03-05 trial3
test93-5-04 trial after3-01-04 | test93-5-04 trial after3-01-04 (notice 93-5-4 doesn't get changed because it is not a valid date by my definition.
Does anybody have a good code segment that does something like this. I'm enough of a programmer that I can modify it to finish the job.