Search file from a string variable with filter

Hello @cacafundi

Please find the following attached sample: fileswithnamessample.xaml (6.5 KB)

This will get all filename from particular directory having the currentdate string in file name like file_20170509.xlsx

Directory.EnumerateFiles("D:\Test", "*"+DateTime.Now.Date.ToString("yyyyMMdd")+"*.xlsx", SearchOption.AllDirectories)

Regards…!!
Aksh

7 Likes