Re: Changing multiple file names
- From: Stan Brown <the_stan_brown@xxxxxxxxxxx>
- Date: Sat, 4 Mar 2006 14:27:52 -0500
Sat, 4 Mar 2006 17:03:37 -0000 from Terry Bennett <terry.bennett1
@virgin.net>:
These are typically labelled: IMG_0001, IMG_0002, etc. I need to
re-label them with something more meaningful, ie; Project_Name
0001, 0002, etc.
I know that some of the photoshop programmes offer this but can it
be done using Windows XP?
AFAIK there's no really easy way in native Win XP. (It's child's play
in the 4NT command shell, which is the cmd.exe replacement that I
use.)
You can do it in stages with the FOR /L command (untested):
FOR /L %%x in (1;1;9) DO REN IMG_000%X%.JPG Projectname_000%X%.JPG
FOR /L %%x in (10;1;99) DO REN IMG_00%X%.JPG Projectname_00%X%.JPG
FOR /L %%x in (100;1;999) DO REN IMG_0%X%.JPG Projectname_0%X%.JPG
FOR /L %%x in (1000;1;9999) DO REN IMG_%X%.JPG Projectname_%X%.JPG
That accounts for the four-digit numbers with leading zeroes that you
showed in your example. Replave 9999 with the highest actual number.
--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
.
- References:
- Changing multiple file names
- From: Terry Bennett
- Changing multiple file names
- Prev by Date: Re: vexira antivirus program
- Next by Date: Re: Changing multiple file names
- Previous by thread: Re: Changing multiple file names
- Next by thread: Switching Audio devices
- Index(es):