Renaming dates under windows cmd
- by ldigas
I have a bunch of directories (folders, if you like) that follow this pattern
\20121022 Description of the directory's contents goes here\
(some don't have it, just the date)
and I need to rename them to follow the following pattern
\2012-10-22 Description of the directory's contents ...\
Is there a way to do it using Windows cmd and the tools that come with it (namely, ren)? If not, what would be the most portable way to do it? I have a very restricted set of privileges on the machine I'm doing this on.