Rev- for renaming files according to folder name

Kurt Kaufman kkaufman at snet.net
Thu Jun 24 12:59:32 EDT 2010


I think that the following sounds like a good task for Rev; just want to make sure:
OS: WinXP SP3
About 1300 folders at same level; each folder with 10-200 files of type jpg,png,bmp,doc.

Would rename every file within folder to the name of that folder plus incremented number, i.e. 
name_of_folder00001.jpg
followed by, potentially, 
name_of_folder00002.doc.

Important: The files would be renamed and sorted by creation date only, so that 
name_of_folder00001.jpg
would be newer than 
name_of_folder00002.doc.

I'm pretty sure that I could apply the programming WD-40 to my brain and remember how to do this (would be a good exercise, also), but would appreciate any tips, warnings, etc.

Thanks, Kurt


More information about the use-livecode mailing list