Renaming files, using the date of creation to order them...
Posted: 06 Jan 2011 06:35
Hello there,
Again needing your help and here I do not even know how to start my scrip :S
I have a large number of files (around 2000 in the same folder) with different names and no relation between those names, and I need to rename them like this
In a txt file I have the list of names like this:
-----Names.txt------
file1
file2
file4
fileOne
-----EndOfNames.txt---
(Note that the names are not correlative, so I can have "file1" and after that "file24" or "fileUnique", that is why I need to do it with this list.)
But I also need the script to rename in this way, to order the files by creation date like this, the "oldest" will have the name file1.pdf (I forgot to mention that all of them are pdf files, so the extension will be .pdf), the second created will have the name file2.pdf...and so on.
There is some way to do that? I hope so...
And thanks in advance for your help.
(Sorry for my english and do not hesitate to ask if more clarification is needed.)
Again needing your help and here I do not even know how to start my scrip :S
I have a large number of files (around 2000 in the same folder) with different names and no relation between those names, and I need to rename them like this
In a txt file I have the list of names like this:
-----Names.txt------
file1
file2
file4
fileOne
-----EndOfNames.txt---
(Note that the names are not correlative, so I can have "file1" and after that "file24" or "fileUnique", that is why I need to do it with this list.)
But I also need the script to rename in this way, to order the files by creation date like this, the "oldest" will have the name file1.pdf (I forgot to mention that all of them are pdf files, so the extension will be .pdf), the second created will have the name file2.pdf...and so on.
There is some way to do that? I hope so...
And thanks in advance for your help.
(Sorry for my english and do not hesitate to ask if more clarification is needed.)