I’m Brazilian, so I used Google Translate to be able to transcribe the message to everyone.
This is being my first post on the forum as I haven’t found any solution to my problem. =/
I’m developing an automation where I need to get from a directory only the files that were added today, either by creation or modification date (files are created and sent to the folder on the same day, so the creation and modification date will always be the same).
Currently, the closest I’ve come is:
Directory.GetFiles(“C:\Temp”).Where(Function (f)Directory.GetCreationTime (f).ToShortDateString = System.DateTime.Now.ToString("dd/MM/yyyy ")).ToArray
However, when I run the automation, nothing happens.
Can anybody help me?