Just used a condition like this it worked path.GetFileName(item).Contains(“Summary_”) and not path.GetFileName(item).Contains(“_V”)
Hope Its resolved Read files.zip (28.5 KB)
This would give all the files without mentioned versions and from that you can select the file yu want buddy
Will there be a chance that you run separate files together, or is it something like on 10.05.2019 you execute your process and pick only the files with “today’s” date?
Because if so, you can try the system.date function instead of the * in Palaniyappan’s statement.
Let us know what works for you and what doesn’t!
The solution of @KarthikByggari works fine but I have another problem.
The file will always be copied from the folder of the previous month. So if we have the 31.01.2020 and the file is tried to copy from the pre month Folder of 31.12.2019 the filter with the date.now won’t work.
If you have an solution for that as well that would be great otherwise I will work with the function until end of the year and think about myself.