WeiszMCITP
MIS
Hello,
I am in need of a script that recursively looks through a folder tree, determines if any files in a subfolder have been modified in the last 180 days, and then logs the subfolder if not. This script will be used for archiving data.
Example:
Parent Folder
SubFolder 1
SubFolder 1
SubFolder 2
SubFolder 2
SubFolder 1
SubFolder 2
SubFolder 3
SubFolder 1
SubFolder 1
SubFolder 3
SubFolder 1
SubFolder 2
I want to set the Source folder to the "Parent folder". The script will then check each Subfolder, and its subfolders for any files modified in the last 180 days. If nothing in the subfolder has been modified in 180 days, then I want that subfolder written to text file.
Hopefully thats clear.
Thanks for the help!
I am in need of a script that recursively looks through a folder tree, determines if any files in a subfolder have been modified in the last 180 days, and then logs the subfolder if not. This script will be used for archiving data.
Example:
Parent Folder
SubFolder 1
SubFolder 1
SubFolder 2
SubFolder 2
SubFolder 1
SubFolder 2
SubFolder 3
SubFolder 1
SubFolder 1
SubFolder 3
SubFolder 1
SubFolder 2
I want to set the Source folder to the "Parent folder". The script will then check each Subfolder, and its subfolders for any files modified in the last 180 days. If nothing in the subfolder has been modified in 180 days, then I want that subfolder written to text file.
Hopefully thats clear.
Thanks for the help!