I'm facing this challenge:
I have files in the following situation:
E: \ Profiles \ <RandomNumber1> \ Logdata \ File1.txt
E: \ Profiles \ <RandomNumber1> \ Logdata \ File2.txt
E: \ Profiles \ <RandomNumber2> \ Logdata \ File3.txt
E: \ Profiles \ <RandomNumber2> \ Logdata \ File4.txt
I want to move all "File.txt" files older than a certain creation date to:
E: \ Profiles \ <RandomNumber1> \ Logdata \ Archive \ File1.txt
Problem is that there are over 1000 directories with random numbers as name, and each of these contains a folder named LogData, which contains about 100 - 10.000 randomly numbered logfiles. These logfiles are all small .txt files. Can I create a bulk renaming operation for this? RegEx seems only to be working for filenames, not to select directory paths.
We are working with a webapplication that uses these logfiles, and uses E: \ Profiles \ and then a random number as a homedir for storage, and creates one of these profiles for each account of the webapp. But when it has to load to many logs at once, the webapp gets slow, so I want to archive all logs older than 6 months.
Processing time would not be a problem, because its a good server with a fast raid array (Quad Xeon, 16GB DDR, 12 x 15K Sas in raid 50), but I can't move the files manually, because they are in so many subdirs.
Any advise is greatly appreciated. Thanks!