Hello All;
I have about 370+ files in a folder that I would like to rename so that they can be used by another script that I have written. I need to rename them all in a specific pattern/sequence. (e.g. file0001.txt file0002.txt file0003.txt)
I know that I could go through each file myself and rename it, but I think that I will find that a bit tedious and annoying. How could I write a script to do this for me when all the current files are almost completely randomly named? I need to run through each filename individually, perform an increment and then a rename.
Does anyone have an idea of how I could do this?
Sorry if my intentions aren't clear. :-(
If they aren't, just give me a shout and I will try to explain it a bit more clearly.
THANKS A HUGE BUNCH FOR ANY AND ALL HELP!
Sean.![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
I have about 370+ files in a folder that I would like to rename so that they can be used by another script that I have written. I need to rename them all in a specific pattern/sequence. (e.g. file0001.txt file0002.txt file0003.txt)
I know that I could go through each file myself and rename it, but I think that I will find that a bit tedious and annoying. How could I write a script to do this for me when all the current files are almost completely randomly named? I need to run through each filename individually, perform an increment and then a rename.
Does anyone have an idea of how I could do this?
Sorry if my intentions aren't clear. :-(
If they aren't, just give me a shout and I will try to explain it a bit more clearly.
THANKS A HUGE BUNCH FOR ANY AND ALL HELP!
Sean.
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)