On 6 Jun 2004 23:13:33 -0700,
(kielhd) wrote:
> Hi NG,
>
> I need to rename a large amount of .jpg-files.
> These files are needed as input for another program, which processes
> the files according to their name: e.g.: file-1.jpg, file-2.jpg,
> file-3.jpg, file-4.jpg, ...
> The initial ordering has to be done manualy, but I need a pgm to help
> me renaming the files.
Why don't you use a batch file to do both processes in one step.
c:
cd picture/jpegs /or whatever directory the jpg files are stored in
ren house.jpg file-1.jpg
ren kids.jpg file-2.jpg
etc etc
Save it as text file called pics.bat.
Click on Start and then Run and type in cmd and press ok.
CD to the drive and directory that you saved the pics.bat file.
type in pics.bat and press enter.
Doing this will do the ordering and rename all of the files for you in one
go. One caveat is that you need to make sure that there are no files in
the directory already with a file name that you want to end up with - ie
none called file-2.jpg.
Cheers, John
Use au instead of invalid for emails to me.