Jump to content

Is this possible? (batch file question)


edm

Recommended Posts

I'm updating player photo's to use with mvpreader.

All photo's in the folder are named using this format "Cory Sullivan.jpg", and I need to get them like this "Sullivan_Cory.jpg"

are there any bat file commands that will do this automatically?

thanks

Link to comment
Share on other sites

I'm updating player photo's to use with mvpreader.

All photo's in the folder are named using this format "Cory Sullivan.jpg", and I need to get them like this "Sullivan_Cory.jpg"

are there any bat file commands that will do this automatically?

thanks

The command below should change a file name from 'Cory Sullivan.jpg' to 'Sullivan_Cory.jpg':

REN Cory Sullivan.jpg Sullivan_Cory.jpg

I'm not sure how to do it on a mass level :(

Link to comment
Share on other sites

I just wrote a program for you. It gets a list of all of the files in the current directory. And then it renames the files like you said.

So:

First Last.jpg

becomes

Last_First.jpg

It won't work perfectly, but it should work well enough for most names.

Names that have periods and/or extra spaces in them, you will need to fix.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...