Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-08-2009, 08:37 AM   #1
TheDA
Confirmed User
 
Industry Role:
Join Date: May 2006
Posts: 4,665
Batch rename photos from a text file?

Is there a prog or app that can do this.

I have a folder of say 400 pics with default file names DSCF0001.jpg - DSCF0400.jpg.

I need to rename them and don't want to do each one individually so wondered if a prog was the best way to go. I figured it was quicker cutting and pasting the new file names into one text file or excel document and have the prog or app do it. Ideally, if I can pull in the datestamp from the exif data into the filename also then great.

Associated file names are sporadic and don't really follow a sequence.

DSCF0001.jpg - boat1.jpg

DSCF0002.jpg - house1.jpg

DSCF0003.jpg - car1.jpg

DSCF0004.jpg - house3.jpg

DSCF0005.jpg - hotel1.jpg

DSCF0006.jpg - boat2.jpg
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 08:45 AM   #2
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
This can be easily done in any scripting language. PHP would be easiest.

http://www.php.net/manual/en/functio...-read-data.php
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 08:49 AM   #3
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
are they on your windows machine?

If so, select all, right click, rename - windows will rename them all [yourname]1.jpg [yourname]2.jpg etc.
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 09:16 AM   #4
TheDA
Confirmed User
 
Industry Role:
Join Date: May 2006
Posts: 4,665
Quote:
Originally Posted by Babaganoosh View Post
This can be easily done in any scripting language. PHP would be easiest.

http://www.php.net/manual/en/functio...-read-data.php
Thanks but beyond my abilities
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 09:17 AM   #5
TheDA
Confirmed User
 
Industry Role:
Join Date: May 2006
Posts: 4,665
Quote:
Originally Posted by Wolfy View Post
are they on your windows machine?

If so, select all, right click, rename - windows will rename them all [yourname]1.jpg [yourname]2.jpg etc.
Yes, on a Windows machine, but the yourname portion is different for each one. Thanks.
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 09:26 AM   #6
CPimp
Confirmed User
 
CPimp's Avatar
 
Industry Role:
Join Date: Aug 2009
Posts: 2,346
ACDSee might be able to do that for you
__________________
three 997 three 55 three 1 ← That's my ICQ. Contact me there. Thanks.
CPimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 11:54 AM   #7
ReGGs
Confirmed User
 
ReGGs's Avatar
 
Join Date: Apr 2006
Location: SoFla
Posts: 248
separate them by the titles you want that then you can use a free program like xnview. Then all you have to do is rename them like this house# and it will number them accordingly.

Last edited by ReGGs; 12-08-2009 at 11:55 AM.. Reason: sp
ReGGs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 12:01 PM   #8
TheDA
Confirmed User
 
Industry Role:
Join Date: May 2006
Posts: 4,665
Quote:
Originally Posted by ReGGs View Post
separate them by the titles you want that then you can use a free program like xnview. Then all you have to do is rename them like this house# and it will number them accordingly.
Thanks. I see a batch rename feature on that but does it let me pull in the names from a text file?

It is that part that I essentially need.
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 12:41 PM   #9
Twistys Tim
Confirmed User
 
Twistys Tim's Avatar
 
Join Date: Apr 2008
Location: Twistys HQ
Posts: 1,923
On my Mac I use a program called File List -- drag the list in, tell it what you want, and press rename.
__________________


$100 PPS Xmas Promo

[email protected]
ICQ 311545482
Skype timmy_vee
Twistys Tim is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 01:14 PM   #10
james_clickmemedia
Confirmed User
 
james_clickmemedia's Avatar
 
Join Date: Apr 2003
Location: Texas / London
Posts: 2,204
there are lots of programs out their for windows. I am on the mac so use Name Mangler which works great.
__________________
$ CLICKMEMEDIA.COM $ CONVERTING ETHNIC TRAFFIC SINCE 1998 ~ $30+PPS
BLACK-X.COM - NEW BLACK EX-GF SITE
CLICKMEMEDIA.COM ~ ICQ - 8788771
james_clickmemedia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 01:56 PM   #11
NemesisEnforcer
Confirmed User
 
NemesisEnforcer's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Vegas and Los Angeles
Posts: 2,122
Quote:
Originally Posted by tube2k View Post
ACDSee might be able to do that for you
ACDSee will do that for you.
__________________
The Only Time When Success Comes Before Work Is In A Dictionary.

Did you ever notice: When you put the 2 words 'The' and 'IRS' together it spells 'Theirs.'
NemesisEnforcer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 02:56 PM   #12
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
php.. heres what you want to do

make a new folder on your server called temp, upload all images to temp, upload the list of new names in a file called newlist.txt filenames should be on a new line
example
name1.jpg
name2.jpg
name3.jpg

save this is index.php
Code:
<?php

// open list
$list = file_get_contents("newlist.txt");
// split list into array
$listarray = explode("\n",$list);
// where to start list from , 0 = top
$count = "0";
// do something for each jpg in the folder starting with the first one
foreach (glob("*.jpg") as $filename) {
//rename the image to the corresponding name in the newlist.txt
rename($filename, "$listarray[$count]");
// show browser its done
echo "Renamed $filename -to- $listarray[$count]\n<br>";
$count = $count + 1;


}
?>
upload to the folder temp
chmod folder 777
run the index in your browser
__________________
hatisblack at yahoo.com

Last edited by SmokeyTheBear; 12-08-2009 at 02:59 PM..
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 03:28 PM   #13
TheDA
Confirmed User
 
Industry Role:
Join Date: May 2006
Posts: 4,665
Thanks all. Looks like Smokey's is the best option for me. Thanks Smokey.
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2009, 04:42 PM   #14
TGThomas
Registered User
 
TGThomas's Avatar
 
Join Date: Jan 2008
Location: wenatchee WA
Posts: 75
af5 its free its easy and has lots of different items for you to use
__________________
You can contact me via the following:

AIM - playazdb0y
ICQ - 459454282
Email - [email protected]
TGThomas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.