CMD Rename

Associate
Joined
15 Oct 2003
Posts
2,478
Location
Newcastle
I'm trying to rename a group of jpgs in one go.

I can do
Code:
rename *.jpg newname.jpg
which is fine but it only renames files in the current directory. I need it to go and run through all the sub folders.

Any help?
 
You can't. That way you would need to go through every folder individually.

You can do this instead...

Code:
XCOPY C:\ImageFolder\old.jpg C:\NewImageFolder\newname.jpg /S

I'm a little confused as to your use though -

if you did

Code:
rename *.jpg newname.jpg

and you had 3 jpg's in your folder you would encounter a duplication error.
 
Back
Top Bottom