Audio & Video Software forum


How to automatically rename a jpg using content in xml file?

by ph845 / September 9, 2011 6:39 AM PDT

I have a directory with several hundred jpeg files where the file names are very generic (date-time.jpg). For each jpeg there is a similarly named xml file that contains information about the jpeg. Is there a way to use the contents of the xml file to rename the corresponding jpeg to be more descriptive (from 'date-time.jpg' to 'date-time-location-owner.jpg') without having to do it manually for each jpeg file? Thank you for any suggestions.

Answer This Ask For Clarification
Discussion is locked
You are posting a reply to: How to automatically rename a jpg using content in xml file?
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: How to automatically rename a jpg using content in xml file?
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
What XML is this?
by R. Proffitt Forum moderator / September 14, 2011 4:51 AM PDT

And why not one of the other script languages or even Visual Studio or a File Renamer App?

Something is untold here.

Collapse -
Custom program
by GraphicRegion / September 2, 2012 4:58 AM PDT

Send me please your jpg and xml file for testing.

Note: This post was edited by a forum moderator to remove email address on 09/04/2012 at 8:42 AM PT

Collapse -
What do you mean with "testing"?
by Kees_B Forum moderator / September 2, 2012 5:21 AM PDT
In reply to: Custom program

And do you think the OP still needs your help after nearly a year? Do you think he even reads your post?

By the way, I asked the forum administrator to remove your email address. That only attracks spam. You can enable the "mail me via the forum" in your profile so the OP can reach you and ask you your email address to send the information to. Much safer.


Popular Forums
Computer Help 47,885 discussions
Computer Newbies 10,322 discussions
iPhones, iPods, & iPads 3,188 discussions
Security 30,333 discussions
TVs & Home Theaters 20,177 discussions
HDTV Picture Setting 1,932 discussions
Phones 15,713 discussions
Windows 7 6,210 discussions
Networking & Wireless 14,510 discussions

Big stars on small screens

Smosh tells CNET what it took to make it big online

Internet sensations Ian Hecox and Anthony Padilla discuss how YouTube has changed and why among all their goals, "real TV" isn't an ambition.