edm Posted March 8, 2007 Share Posted March 8, 2007 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 More sharing options...
bigbully Posted March 8, 2007 Share Posted March 8, 2007 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 More sharing options...
tywiggins Posted March 8, 2007 Share Posted March 8, 2007 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 More sharing options...
edm Posted March 8, 2007 Author Share Posted March 8, 2007 works like a charm, thanks tywiggins. I really appreciate it. This will save me a lot of time :) Link to comment Share on other sites More sharing options...
tywiggins Posted March 8, 2007 Share Posted March 8, 2007 works like a charm, thanks tywiggins. I really appreciate it. This will save me a lot of time You're welcome. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.