file renaming utility
I've got a large, tedious job to do.
For work, we run this inbound interface that processes a file by its name - let's say inbound.dat
In our Test environment, we're making changes, so we want to run several hundred inbound files through(we can only run them one by one since the file names are the same, otherwise they'd overwrite each other) which we retrieved from our archive directory.
They all have date/timestamps on them, to make the file names unique - inbound.dat20130115_112301
Now, I have two possible solutions:
1) I could prepare the files ahead of time by renaming the each to inbound.dat and create a new directory for each one (since the file names are the same). That way, all i have to do is drop them manually into the interface's directory.
2) feed these files into some sort of batch list processing that will rename them one at a time and drop them into the interface's directory every 3 minutes.
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
"One day when you have more to care about in this world than yourself and can see the grown-up's side of ... please put your hands in your lap and stop carelessly pushing the buttons in front of you...."