Help needed for work, asap please, IT people???
Help needed for work, asap please, IT people???
Author
Discussion

leeb

Original Poster:

1,074 posts

267 months

Sunday 19th September 2004
quotequote all
Hi hope this isnt in the wrong place, needed the quickest solution.

i need to rename a whole load of files (school photos, for the school to auto import into their system so that they can identify students and for their records)

but these are files saved as a number the school software will recognise and autobatch. But the software we shoot to takes off 2 zeros from the front of the number like excel does, trouble is we cant edit it like in excel.

so the only way round it is to rename all the images after they have been saved. for example all the images are saved as 1234.jpg, 1235.jpg etc, but i need them all as 001234.jpg for the schools to recognise the number.

does that make sence?

i got talked through a way in dos, but all that done was replaced the first number with a zero on all files, close, but not quite there. we are talking 1500 images so manually doing it is not guna be a good day out.

Please, anyone that knows let me know asap, thanks a lot. it would really save me a lot of agro at work!!!

uriel

3,244 posts

275 months

Sunday 19th September 2004
quotequote all
Try www.123renamer.com/

They have a free download and it sounds like it will do what you're after...hope it helps.

miniman

29,443 posts

286 months

Sunday 19th September 2004
quotequote all
Or, make a spreadsheet with 3 columns:

In column A, simply put the word "REN" and fill down to the bottom of the list of files

In column B, put the list of original filenames

In column C, put the list of what you want the files renamed to

So, you would get something like

REN 1234.jpg 001234.jpg
REN 2345.jpg 002345.jpg
...
...

Then, export the spreadsheet as tab delimited text to a file called "myfile.bat". Copy that file in to the folder with the images in, and double click it. What you have made is a batch file with a rename command for each file.

Take a backup of the originals before you start!!

docevi1

10,430 posts

272 months

Sunday 19th September 2004
quotequote all
www.irfanview.com is your answer, hit b (batch processing) and you can rename your files. Just make you add enough #### for the numbers and it'll add 0's in the earlier spaces.

GreenV8S

30,999 posts

308 months

Sunday 19th September 2004
quotequote all
If you just want to add exactly two zeroes, you can do it with a DOS command like this (assuming you are running a recent Windows version):

for %f in ( *.jpg ) do move %f 00%f

Size Nine Elm

5,167 posts

308 months

Sunday 19th September 2004
quotequote all
for FILE in *; do
mv $FILE 00$FILE
done

Unless you're using one of these new-fangled PC things.


Edited to add; GreenV8S just beat me to it with the DOS version...

>> Edited by Size Nine Elm on Sunday 19th September 10:57

arcturus

1,497 posts

287 months

Sunday 19th September 2004
quotequote all
I use Magic File Renamer from http://mfr.queryweb.com/

You can do all sorts of complex renaming operations on thousands of files at a time.