Can someone help me make the following batch file only process files that are older than 365 days?
@echo off
SetLocal EnableDelayedexpansion
set "Folder=C:\Test Folder"
set "exclude=.dll.exe.bat.zip.jpg.bmp.pdf.mp4.vbs"
FOR /f "delims=" %%x IN ('dir /b /s "%Folder%" ') do if "!exclude:%%~Xx.=!"
equ "%exclude%" (
"7za.exe" a -sdel -stl "%%~dx%%~px%%~nx.zip" "%%x"
)