• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

file renaming utility

robphelan

Diamond Member
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.

OR

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.

Any ideas?
 
I think writing a script is a grand idea. It'll be good for exercising your brain, and you can adapt it for future needs.
 
Back
Top