| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jul 2005
Posts: 1,492
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Rename A Bulk of Files I have a list for example: old name; new name 1234; hello .. .. .. In a directory, the file name is 1234.jpg. Now, I would like to change it automatically to hello.jpg. I have a list with thousand of names that need to be renamed. Anyone could help me or any scripts would do this. Really appreciate that & Thanks in advance!!!
__________________ ||||newsiness.com||||'""|""\__,_ | _[lol]___[lol]____ l ||__|__|) |(@)(@)"""""""**|(@)(@)**|(@) 100% Free Online Flash games |
| |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | EDIT: jk, disregard my previous post below the line. i misread your post. currently editing w/ right answer. ok so you first want to read the file (i assume it's a text file). try this and tell me how it goes (untested, i just wrote it up on NP post real quick lol): PHP Code: ========================================== how do you want the "hello" to be generated? the original file names dont matter, right? something like this would work (php). just pop it into the same directory as the images, edit the path in opendir, the var u want the new name to be, and run it. PHP Code:
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated!
Last edited by nasaboy007; 09-05-2008 at 03:37 PM.
|
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Jul 2005
Posts: 1,492
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | nasaboy007, Thanks for the help... will test out your script and get back to you... ![]() rep on its way. Besides, I also found an utility that would do this... In the FAQ page, it claims that the free utility could rename the files from a list. http://www.bulkrenameutility.co.uk/Faq.php (Tested and it works!!!)
__________________ ||||newsiness.com||||'""|""\__,_ | _[lol]___[lol]____ l ||__|__|) |(@)(@)"""""""**|(@)(@)**|(@) 100% Free Online Flash games
Last edited by newsiness; 09-05-2008 at 03:46 PM.
|
| |