Question
Use database row field to batch rename 500 .jpg's ?
I have a database in which contains 500 hundred rows.
Each row has a field called product_code eg. PF133
Each row has another field called filename eg. 12a5f.jpg , which matches the filename of an actual jpg file on the hard disk (500 of them)
At present a user can pull up any row in the database and click the filename to see the jpg on-screen
What I need to do is batch rename all the .jpg files on the hard disk so they are of the format produce_code.jpg
What's the best way to do this ?
Each row has a field called product_code eg. PF133
Each row has another field called filename eg. 12a5f.jpg , which matches the filename of an actual jpg file on the hard disk (500 of them)
At present a user can pull up any row in the database and click the filename to see the jpg on-screen
What I need to do is batch rename all the .jpg files on the hard disk so they are of the format produce_code.jpg
What's the best way to do this ?
