I have tried adapting a solution offered in http://www.experts-exchange.com/Operating_Systems/MSDOS/Q_20380332.html
, but I am finding that solution too slow for my needs.
I need some help moving files around, and would like to use batch to do it.
I have log files created daily on L:\logs (server) named EJ*.*.
Within these files are text strings that I wish to use to file them within sub folders.
Each file is randomly named, so I can't go by the filenames.
1> Text string x000250 would be filed under l:\logs\x\000250\
ID's range from x000000 to x999999
2> Text string e123456 would be filed under l:\logs\e\123456\
ID's range from e000000 to e999999
3> THE REAL SPANNER IN THE WORKS....
Text string "log 0001" would be filed under l:\logs\w\xcgf
Text string "log 0002" would be filed under l:\logs\w\ac4w
ID's range from "log 0000" to "log 9999"
As the server has new customer accounts added, the string may or may not have any relation to the folder name, so I am looking for a solution that can easily be updated to reflect account changes/removal/new customers.
All files are text data, and are named in the following formats:
This number of files created daily could be 100's or 1,000's of files - far too many to process manually.
I am open to most options - especially any tweeks from the solution I am trying to make the whole thing a breeze.
Many thanks for any help that you can offer.