I have tried building several scripts unsucessfully and need some help scripting this one... I am trying to achieve the following:
1. Move all files that are older than 01/01/2011 and were created on the first of the month to C:\Archive from D:\Reports.
2. Delete all files that were not moved and were created before 01/01/2011 in D:\Reports.
When I move these files, I need to preserve the folder structure, because many of the files have the same name but are in folders named differently and the folder structure goes about 4 levels deep.
There are hundreds of folders containing thousands of files, so it's going to be a process. Thanks in advance for any suggestions you may have.
1. Move all files that are older than 01/01/2011 and were created on the first of the month to C:\Archive from D:\Reports.
2. Delete all files that were not moved and were created before 01/01/2011 in D:\Reports.
When I move these files, I need to preserve the folder structure, because many of the files have the same name but are in folders named differently and the folder structure goes about 4 levels deep.
There are hundreds of folders containing thousands of files, so it's going to be a process. Thanks in advance for any suggestions you may have.