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 49,613 discussions
Computer Newbies 10,349 discussions
Laptops 19,436 discussions
Security 30,426 discussions
TVs & Home Theaters 20,308 discussions
Windows 10 360 discussions
Phones 15,802 discussions
Windows 7 7,351 discussions
Networking & Wireless 14,641 discussions


Big screens for the big game

Still looking for the best TV deals ahead of Sunday's game? Here are our top three big screen picks.