I want to create a bat file that will search for xml files from a folder and if one xml file is older than 10 days to show a pop-up message.
The idea is that I don't know how exactly I can do this with if and else.
I know that I can use
forfiles /p "path" /s /m *.xml /d -10 /c "cmd /c echo @file"
for searching the date for the xml files but how to show the message just in case one of the xml is older than 10 days ? In the other case no message.