Archive a subfolder and delete it
Posted: 03 Mar 2020 09:52
Hello
I've made a lot of research but i can't found the exact result that i need ...
I have for exemple :
And i need to have
I've tried a code but it makes a global archive of every subfolderToArchiveX :/
And, i need to archive these subfolder only if they're older than 30 days
I'm new to batch, i can only archive a folder but i can't make it loop to every subfolder, any ideas ?
I've made a lot of research but i can't found the exact result that i need ...
I have for exemple :
Code: Select all
C:\folderA\subfolderToArchiveA
C:\folderB\subfolderToArchiveB
C:\folderC\subfolderToArchiveC
Code: Select all
C:\folderA\subfolderToArchiveA.rar
C:\folderB\subfolderToArchiveB.rar
C:\folderC\subfolderToArchiveC.rar
And, i need to archive these subfolder only if they're older than 30 days
I'm new to batch, i can only archive a folder but i can't make it loop to every subfolder, any ideas ?