вот мой сценарий для перемещения файлов старше определенного количества дней -
mkdir F:\TempRemoval
robocopy "F:\Example" "F:\TempRemoval" /move /e /minage:1
del "F:\TempRemoval\*.*" /f /s /q
rmdir F:\TempRemoval /s /q
exit
Единственная проблема, с которой я сталкиваюсь, это то, что в эту папку добавляются нужные мне файлы возрастом 3-4 года. Я знаю решение, которое будет работать, но я не уверен, как его кодировать.
Я хочу, чтобы robocopy выполнял поиск только по дате до первого уровня папок, т.е.
c:\folders\delete
Я хочу, чтобы он выполнял поиск по дате только для файлов и папок, перечисленных в «папках», и перемещал всю папку и подпапки / файлы на основе этого результата.
Есть какой-либо способ сделать это?