homepage Welcome to WebmasterWorld Guest from 54.234.59.94
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque & physics

Webmaster General Forum

    
Batch rename files
flyerguy




msg:392755
 6:07 pm on Sep 27, 2004 (gmt 0)

Hi,

I have a large series of HTML files, which were created by a batch program. These files are currently sequentially named, file_1.html, file_2.html.

I also have one thumbnail .gif associated with each file, each with compeltely unique names.. "bluewidget_blah.gif".

I need to batch rename the HTML files to the same name as the .gif's. The file that bluewidget_blah.gif belongs to should take on its name, so, bluewidget_blah.html.

The good thing is that both sets of files are A-Z sorted, therefore there is at least some connection. I suppose the sequential creation time of the HTML files could also be used for association.

I cannot find a utility that will do this. Can someone please help..

 

prairie




msg:392756
 6:24 pm on Sep 27, 2004 (gmt 0)

Hi Flyerguy,

If you have OSX, there's a script built in for this inside of Applescript.

fourstardragon




msg:392757
 6:27 pm on Sep 27, 2004 (gmt 0)

Hello flyerguy. A Perl script should be able to do this. Do you know it, or another scripting language?

flyerguy




msg:392758
 7:36 pm on Sep 27, 2004 (gmt 0)

Hey,

I'm WinXP and want to do this on my comp then upload to server. Not sure about Perl support on my server but it seems like there must be a utility to do this on PC. Thanks.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved