Ok, here's probably a tricky one...I have a drive that has data on it, which is organized into two file types, a .wav and a .ifo. The files are in folder schemes based on the channel, and the date, so the location of a file for today on channel one could be D:/001/08302007/filename.ifo.
What had happened is someone cut all the wavs off the drive, and put them all into 1 folder, by searching the drive for *.wav, then pasting all the results in one folder.
Now….. we need to put all the files back onto the drive for them to be restored, pairing the .wav back with the .ifo. They're named the same, for example one pair is ")TK!%XCD.ifo" and “)TK!%XCD.wav”.
The reason why this is tricky to do by hand is since we have about 30 channels, and 3 months of data, there are over 250,000 files in about 25,000 folders. So instead of taking the file name, searching the folder where all the wav’s got cut to (prelogbak), then cutting the wav into the folder 250,000, it would be nice to have a program that could do this for me.
What I would like to do is have a batch file that would go through and look at what .ifo files are in a folder, then go to the folder with the wav files "C:/prelogbak" and copy the matching .wav file into the folder with the .ifo.
So it would go into D:/001/08302007/ and see D:/001/08302007/filename1.ifo, then go search C:/prelogbak for filename1.wav. When it finds it, it pastes filename1.wav in the same folder with filename1.ifo. Then it goes on to all the other files and folders, etc.
If this cant be done, I'd settle for a batch file that could do a dir of the ifo files, then take of the extension so I could drop it into a search, so instead of having
File1.ifo
File2.ifo
File3.ifo
I’d rather have
File1, File2, File3.
Sorry for the tall order :D.
-Brian