24 Mar 2009 at 22:15 #1 Hencore Hencore 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?
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?
25 Mar 2009 at 00:56 #2 brainchylde brainchylde Associate Joined 5 Feb 2009 Posts 424 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.
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.
25 Mar 2009 at 07:49 #3 swinnie swinnie Soldato Joined 30 Apr 2007 Posts 3,095 Location Kent If you want to do batch renaming, try IrfanView - does the trick for me.
25 Mar 2009 at 13:54 #4 whitecrook whitecrook Soldato Joined 22 Aug 2005 Posts 8,971 Location Clydebank Code: SET location=c:\jpegs\ for /f %%A IN ('dir %location% /b /a-d') DO ( CD /D %location% REN %%A %%~nA_NEW.jpg )
Code: SET location=c:\jpegs\ for /f %%A IN ('dir %location% /b /a-d') DO ( CD /D %location% REN %%A %%~nA_NEW.jpg )
25 Mar 2009 at 14:14 #5 Helium_Junkie Helium_Junkie Soldato Joined 26 Nov 2003 Posts 6,674 Location East Sussex Theres freeware called "TheRename" which did the trick for me.