Hi all, I have x n o no files in one location. I need to check if date modified is equal to current date and if it is then I need to check for a certain type and if it that type’s available then get that file.
At present I have a for each loop over that directory and an if condition saying if date modified is same as current date then do stuff. The problem with this is since the for loop is there when the bot loops through the directory and if there are other files available whose modified date isn’t the same as today date it goes to the else section. I want the bot to look in the directory ,find the file whose last modified date is same as today’s date and then check for its type and perform actions on it. How can I do this. Please advise.