I need a simple batch to find files which are older than 7 days.
if there is no file older than 7 days than email me.
for email I use simple command line software
bmail -s mail.mailserver.com -f %username%@mailserver.com -t
[email protected] -h -a "Archives missing" -b "" -m path.txt"
In file path.txt are full paths to users archive folder.
I tried with 2 batch files but not working
forfiles /P ".\logfiles" /S /M *.txt /D -7 /C "start /w mail.bat"