PDA

View Full Version : renaming pictures according to picture id (which is stored in mysql)


jerx
09-22-2008, 11:33 AM
I am trying to convert a phpbb album mod to vb' s album feature. I noticed that if you store your pictures in file system, they are named "pictureid.picture", eg 7205.picture.

Can anyone please help me on this problem?

I think these are the required steps:

- connect to database and read one entry after the other
- find file of each entry in directory (phpbb album db has a column with whole file name=pic_filename)
- rename file according to picture id (=pic_id) of the same entry (in phpbb album db)

Any help is greatly appreciated!

jerx
09-25-2008, 08:08 AM
I solved my problem by using this program:
http://www.bulkrenameutility.co.uk/Main_Intro.php