I want to search a folder for files with a specific name and afterwards delete those files only if the creation date is equal to “today”. Managed to extract the file path by using directory.GetFiles(folderLoc, “ABC*”).
I`m struggling with the if statement: How to check if those files have been created on the day of the bot execution?
It works if I add the date to the file name, unfortunately this is not the case in general.
The files are generated reports which always start with “CC_Analysis_” the following characters are randomly assigned and don`t contain the date. Is there a possibility to check for the date of the download?