|Ok, here goes:|
I work for an audio recording company. As such, there are times we need to upgrade a client's recorder and migrate all the old call data to the new system. Easy enough right? The directories are layered like so:
1: Parent Directory
2: Station Directories
3: Call Date Directories
4: Data Files (Two file types per call)
Now, the file structure in a new vs old machine is identical, however, the software is designed a bit counter-intuitive. It requires all the Data Files (bottom directory) to be dragged into a single folder and then the software integrates them into a new index and moves them to the proper folders. If I cut and paste them it won't know they are there and the calls can't be accessed.
What I am looking for is some sort of batch script I can drop into the Parent Directory of the old machine, pull all the data files to the top, then I can move them over to the indexing directory on the new machine.
I have tried, of course, searching the file types in windows, but there can be up 50,000 or so calls total in one phone directory. Needless to say older versions of Windows give me hell over that many file matches.
My biggest issue is that the directory names are never the same from site to site, so while they would match on a new vs old machine, they are different from customer A to customer B so I need a script that does not rely on specific directories.
Clear as mud, I know, but if anyone could help me out it would be AMAZING. I have been using a CMD String that works pretty well, but I can't figure out how to take that string and make it a .bat to share with my fellow employees.
CMD STRING: (From Parent Directory)
for /r %i in (*) do @move "%i" .