Sunday, June 20, 2010

How to rename all files in directory

I am not good at command lines, and I was trying to rename all files under directory and it's subdirectory from html to aspx ( I am working on converting html prototype to asp.net website), I executed the following command:

rename *.html *.aspx

But it is not renaming subdirectory files, so I was manually pointing cmd to each sub-directory and renaming the files.

Anyone knows a good way to do that?

No comments: